-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: restore mainWindow on MacOS #608
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this address Bob Wallet app window stops showing after some time? If so this is a great change to a very annoying issue!
app/main.js
Outdated
@@ -102,6 +102,12 @@ if (isPrimaryInstance) { | |||
} | |||
}); | |||
|
|||
app.on('activate', () => { | |||
// On OS X it's common to re-create a window in the app when the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe Apple changed their OS naming from old OS X to macOS.
@Falci can you explain a bit on what this does or aims to fix? (I'm not a macos user :|) From electron docs:
Also, re: the change from
|
Sure. On Mac, when we close Bob (x or cmd+q) the main window disappear but the dock shows Bob as active, as if we could restore it. But if we try to restore, nothing happens. Screen.Recording.2023-02-20.at.08.43.20.movAnd the |
I can confirm the same happens for me. Would be great to have a patch version release once it’s merged. |
Oh cool, that makes sense, thanks! |
Restore the main window from the dock (MacOS only)