Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

プリセットマネージャー管理ダイアログが開かれたときにメニューバーとかがロックされてない #2537

Open
Hiroshiba opened this issue Feb 16, 2025 · 0 comments
Labels

Comments

@Hiroshiba
Copy link
Member

不具合の内容

タイトルのとおりです。
大体のダイアログは開かれたあとに他のダイアログを開けないよう、メニューバーや他のUIをlockするようになっていますが、プリセットマネージャー管理ダイアログは機構がちょっと違うのでそうなっていません。

再現手順

プリセットマネージャー管理ダイアログを開く

現象・ログ

メニューバーのアイテムをクリックできてしまう

期待動作

ちゃんとロックされる

VOICEVOXのバージョン

mainブランチ or 0.23?

その他

このあたりがロックする機構です。
大体のダイアログはSET_DIALOG_OPEN actionでダイアログを閉じます。

voicevox/src/store/ui.ts

Lines 192 to 199 in f44a29b

if (value) {
mutations.LOCK_UI();
mutations.LOCK_MENUBAR();
} else {
mutations.UNLOCK_UI();
mutations.UNLOCK_MENUBAR();
}
}

とりあえずこれだけをactionsとして切り出して、開く・閉じるのに合わせて呼べば良さそう・・・?
ちょっと難しいかも。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant