[MM-44339] Remove unnecessary calls to show the main window (#2134)
This commit is contained in:
@@ -124,10 +124,6 @@ function createMainWindow(options: {linuxAppIcon: string; fullscreen?: boolean})
|
||||
}
|
||||
});
|
||||
|
||||
mainWindow.once('show', () => {
|
||||
mainWindow.show();
|
||||
});
|
||||
|
||||
mainWindow.once('restore', () => {
|
||||
mainWindow.restore();
|
||||
});
|
||||
|
@@ -213,7 +213,6 @@ export class WindowManager {
|
||||
// max retries allows the message to get to the renderer even if it is sent while the app is starting up.
|
||||
sendToRendererWithRetry = (maxRetries: number, channel: string, ...args: any[]) => {
|
||||
if (!this.mainWindow || !this.mainWindowReady) {
|
||||
this.showMainWindow();
|
||||
if (maxRetries > 0) {
|
||||
log.info(`Can't send ${channel}, will retry`);
|
||||
setTimeout(() => {
|
||||
|
Reference in New Issue
Block a user