Skip to content

Commit

Permalink
add a timeout for stability
Browse files Browse the repository at this point in the history
  • Loading branch information
ylxmf2005 committed Jan 22, 2025
1 parent 7c80240 commit 8fb2b92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/window-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ export class WindowManager {
if (newMode === 'pet') {
setTimeout(() => {
this.continueSetWindowModePet();
}, 300);
} else this.continueSetWindowModeWindow();
}, 500);
} else {
setTimeout(() => {
this.continueSetWindowModeWindow();
}, 500);
}
});

ipcMain.on('mode-change-rendered', () => {
Expand Down

0 comments on commit 8fb2b92

Please sign in to comment.