Skip to content

Commit

Permalink
Fix: disable menu when lose focus
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 committed Mar 17, 2024
1 parent 9dd91ef commit 2c64257
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/renderer/ui/app-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
)
Expand Down

0 comments on commit 2c64257

Please sign in to comment.