Skip to content

Commit

Permalink
Fix UNLOCK_UI (VOICEVOX#774)
Browse files Browse the repository at this point in the history
* add detectNvidia function

* follow to menu bar

* remove no longer a variable

* run fmt

* fix typo

* remove utils.ts and some changes in background.ts

* change message box type and detail, and change behaviour of setOnLaunchModeItemClicked

* recreate package-lock.json using node 12.18.2

* re recreate package-lock.json using node 12.18.2 and npm 7.20.5

* recreate package-lock.json using node 12.18.2 and npm 6.14.5

* recreate package-lock.json using node 12.18.2 and npm 7.20.3

* fix conflict

* add process of check whether 0 for state.uiLockCount

* add console.warn

* add eslint disable line

* fix
  • Loading branch information
madosuki committed Apr 8, 2022
1 parent be239a1 commit b641f4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/store/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ export const uiStore: VoiceVoxStoreOptions<UiGetters, UiActions, UiMutations> =
state.uiLockCount++;
},
UNLOCK_UI(state) {
state.uiLockCount--;
if (state.uiLockCount !== 0) {
state.uiLockCount--;
} else {
// eslint-disable-next-line no-console
console.warn("UNLOCK_UI is called when state.uiLockCount == 0");
}
},
LOCK_MENUBAR(state) {
state.dialogLockCount++;
Expand Down

0 comments on commit b641f4b

Please sign in to comment.