mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 05:23:17 +00:00
main: Remove dead code for recreating main window.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -163,12 +163,7 @@ function createMainWindow(): Electron.BrowserWindow {
|
||||
|
||||
// This event is only available on macOS. Triggers when you click on the dock icon.
|
||||
app.on("activate", () => {
|
||||
if (mainWindow) {
|
||||
// If there is already a window show it
|
||||
mainWindow.show();
|
||||
} else {
|
||||
mainWindow = createMainWindow();
|
||||
}
|
||||
mainWindow.show();
|
||||
});
|
||||
|
||||
const ses = session.fromPartition("persist:webviewsession");
|
||||
|
||||
Reference in New Issue
Block a user