1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

small fix

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2020-10-07 23:31:52 +03:00
parent aac4eb1a3e
commit a2c39358ef

View File

@ -130,11 +130,11 @@ export class WindowManager {
await callback(this.mainWindow);
} else {
this.ensureTrayWindow();
if (this.mainWindow) this.mainWindow.hide();
this.mainWindow?.hide();
this.trayWindow.show();
await callback(this.trayWindow);
this.trayWindow.hide();
if (this.mainWindow) this.mainWindow.hide();
this.mainWindow?.show();
app.hide();
}
}