From 2c64257610ada40d913f77197f733381b8927aff Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sun, 17 Mar 2024 18:54:32 +0000 Subject: [PATCH] Fix: disable menu when lose focus --- app/renderer/ui/app-view.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/renderer/ui/app-view.vue b/app/renderer/ui/app-view.vue index 34561933..e248f51f 100644 --- a/app/renderer/ui/app-view.vue +++ b/app/renderer/ui/app-view.vue @@ -266,9 +266,11 @@ disposable( if (newValue.value === "blur") { uiState.mainViewFocused = false; databaseService.pauseSync(); + PLMainAPI.menuService.disableAll(); } else if (newValue.value === "focus") { uiState.mainViewFocused = true; databaseService.resumeSync(); + PLMainAPI.menuService.enableAll(); } } )