This commit is contained in:
Bryan1029384756
2026-04-18 15:41:51 -05:00
parent 938df217f4
commit 593eaba82e
47 changed files with 3539 additions and 212 deletions

View File

@@ -52,7 +52,13 @@ const electronPlatform = {
minimize: () => window.windowControls.minimize(),
maximize: () => window.windowControls.maximize(),
close: () => window.windowControls.close(),
flashFrame: () => window.windowControls.flashFrame(),
flashFrame: (on) => window.windowControls.flashFrame(on),
},
notifications: {
show: (opts) => window.notificationAPI.show(opts),
setBadge: (count) => window.notificationAPI.setBadge(count),
flashFrame: (on) => window.notificationAPI.flashFrame(on),
ensurePermission: async () => 'granted',
},
recording: {
getDefaultFolder: () => window.recordingAPI.getDefaultFolder(),
@@ -70,6 +76,9 @@ const electronPlatform = {
},
updates: {
checkUpdate: () => window.updateAPI.checkFlatpakUpdate(),
getStatus: () => window.updateAPI.getStatus(),
downloadAndInstall: () => window.updateAPI.downloadAndInstall(),
onStatusChanged: (cb) => window.updateAPI.onStatusChanged(cb),
},
systemBars: null,
searchDB,
@@ -80,6 +89,7 @@ const electronPlatform = {
hasSearch: true,
hasSystemBars: false,
hasRecording: true,
hasNotifications: true,
},
};