clean up updater logic

This commit is contained in:
AAGaming
2024-02-19 23:42:24 -05:00
parent 22b732bab4
commit 7e3f9edacf
4 changed files with 8 additions and 7 deletions
+4
View File
@@ -27,3 +27,7 @@ export const doUpdate = DeckyBackend.callable('updater/do_update');
export const doRestart = DeckyBackend.callable('updater/do_restart');
export const getVersionInfo = DeckyBackend.callable<[], VerInfo>('updater/get_version_info');
export const checkForUpdates = DeckyBackend.callable<[], VerInfo>('updater/check_for_updates');
DeckyBackend.addEventListener('frontend/finish_download', async () => {
await doRestart();
});