-
Notifications
You must be signed in to change notification settings - Fork 365
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
feat: add option activateWithApp to allow not activate with this event #361
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.
LGTM, however I would like to see activateWithApp
set to true
by default.
} | ||
}); | ||
if (this._options.activateWithApp) { | ||
this.app.on('activate', (_event, hasVisibleWindows) => { |
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 would like to not change the existing behavior.
Could you add inside the cleanOptions functions some logic to default this to true
? E.g. if (options.activateWithApp === undefined) { options.activateWithApp = true }
@@ -8,6 +8,10 @@ import { | |||
* Options for creating a menubar application | |||
*/ | |||
export interface Options { | |||
/** | |||
* Listen on `app.on('activate')` to open menubar when app is activated. |
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.
* Listen on `app.on('activate')` to open menubar when app is activated. | |
* Listen on `app.on('activate')` to open menubar when app is activated. | |
* @default `true` |
Updated as you suggested, thanks for the quick response, looks like I can use a new version today :) |
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.
thanks!
This fixes #360