forked from Blendman974/faceclaw
Add option to auto-dismiss notifications after a timer
This commit is contained in:
1 parent
9ba5c1988d
commit
448a057d2d
15 files changed
+329
-30
No files matched your search
@@ -14,7 +14,12 @@ const notificationsApp: AppDefinition = {
|
||||
if (listenerState === "no-access" || listenerState === "stuck") {
|
||||
requestNotificationListenerAccess();
|
||||
}
|
||||
return ctx.launchInProcessApp(NOTIFICATIONS_WINDOW_ID, NOTIFICATIONS_SURFACE_ID, createNotificationsAppWindow);
|
||||
return ctx.launchInProcessApp(NOTIFICATIONS_WINDOW_ID, NOTIFICATIONS_SURFACE_ID, (options) =>
|
||||
createNotificationsAppWindow(options, (section) => {
|
||||
void ctx.launchApp("settings", { section }).catch((error) => {
|
||||
ctx.appendLog(`settings launch failed: ${error}`);
|
||||
});
|
||||
}));
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user