summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/plugin-loader.tsx1
-rw-r--r--frontend/src/router-hook.tsx3
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 09fb4433..74732ac7 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -211,6 +211,7 @@ class PluginLoader extends Logger {
this.deckyState.setHasLoaderUpdate(true);
if (this.notificationService.shouldNotify('deckyUpdates')) {
this.loaderUpdateToast && this.loaderUpdateToast.dismiss();
+ await this.routerHook.waitForUnlock();
this.loaderUpdateToast = this.toaster.toast({
title: <TranslationHelper transClass={TranslationClass.PLUGIN_LOADER} transText="decky_title" />,
body: (
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx
index 6e7f5ee1..98aa6863 100644
--- a/frontend/src/router-hook.tsx
+++ b/frontend/src/router-hook.tsx
@@ -173,10 +173,9 @@ class RouterHook extends Logger {
}
}
- private async waitForUnlock() {
+ public async waitForUnlock() {
try {
while (window?.securitystore?.IsLockScreenActive?.()) {
- this.debug('Waiting 500ms for lockscreen to close');
await sleep(500);
}
} catch (e) {