From: Haojian Wu Date: Tue, 15 Sep 2015 01:36:05 +0000 (-0700) Subject: Deprecate 'activate-with-no-open-windows' event. X-Git-Tag: v0.32.3~5^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=40d93ce55aa0e478b639b0b07e42de1328930ae4;p=electron.git Deprecate 'activate-with-no-open-windows' event. --- diff --git a/atom/browser/mac/atom_application_delegate.mm b/atom/browser/mac/atom_application_delegate.mm index 525e700e..7bdab03e 100644 --- a/atom/browser/mac/atom_application_delegate.mm +++ b/atom/browser/mac/atom_application_delegate.mm @@ -56,6 +56,7 @@ if (flag) { return YES; } else { + // Deprecated API, for compatibility. browser->ActivateWithNoOpenWindows(); return NO; } diff --git a/docs/api/app.md b/docs/api/app.md index ba61e1a0..85ad873d 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -94,12 +94,6 @@ must be registered to be opened by your application. You should call `event.preventDefault()` if you want to handle this event. -### Event: 'activate-with-no-open-windows' _OS X_ - -Emitted when the application is activated while there are no open windows, which -usually happens when the user has closed all of the application's windows and -then clicks on the application's dock icon. - ### Event: 'activate' _OS X_ Returns: