Skip to content

Commit

Permalink
fix: show setting window condition
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 28, 2024
1 parent 839b636 commit 32bc7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const createMainWindow = () => {
export const createSettingWindow = () => {
// We need to open the setting modal in the main window when the main window exists,
// if we open a new window then the state between the two windows will be out of sync.
if (windows.mainWindow) {
if (windows.mainWindow && windows.mainWindow.isVisible()) {
windows.mainWindow.show()
callGlobalContextMethod(windows.mainWindow, "showSetting")
return
Expand Down

0 comments on commit 32bc7b0

Please sign in to comment.