summaryrefslogtreecommitdiff
path: root/frontend/src/updater.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/updater.ts')
-rw-r--r--frontend/src/updater.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/updater.ts b/frontend/src/updater.ts
index 2df1f2a5..edc9eeb3 100644
--- a/frontend/src/updater.ts
+++ b/frontend/src/updater.ts
@@ -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();
+});