Implement 'activiate' event instead of 'activate-with-open-windows'.
This commit is contained in:
parent
c006c4efa4
commit
377e7ee3a7
7 changed files with 20 additions and 14 deletions
|
@ -171,8 +171,8 @@ void App::OnActivateWithNoOpenWindows() {
|
|||
Emit("activate-with-no-open-windows");
|
||||
}
|
||||
|
||||
void App::OnActivateWithOpenWindows() {
|
||||
Emit("activate-with-open-windows");
|
||||
void App::OnActivate(bool hasVisibleWindows) {
|
||||
Emit("activate", hasVisibleWindows);
|
||||
}
|
||||
|
||||
void App::OnWillFinishLaunching() {
|
||||
|
|
|
@ -42,7 +42,7 @@ class App : public mate::EventEmitter,
|
|||
void OnOpenFile(bool* prevent_default, const std::string& file_path) override;
|
||||
void OnOpenURL(const std::string& url) override;
|
||||
void OnActivateWithNoOpenWindows() override;
|
||||
void OnActivateWithOpenWindows() override;
|
||||
void OnActivate(bool hasVisibleWindows) override;
|
||||
void OnWillFinishLaunching() override;
|
||||
void OnFinishLaunching() override;
|
||||
void OnSelectCertificate(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue