Skip to content

Commit

Permalink
Fix: nw2: reload app #7271
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Feb 18, 2020
1 parent bdea9fd commit 035ee07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/launcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ void RestartPlatformApp(content::BrowserContext* context,

extensions::ExtensionPrefs* extension_prefs =
extensions::ExtensionPrefs::Get(context);
bool had_windows = extension_prefs->IsActive(app->id());
bool had_windows = extension_prefs->IsActive(app->id()) || true;
extension_prefs->SetIsActive(app->id(), false);
bool listening_to_launch = event_router->ExtensionHasEventListener(
app->id(), app_runtime::OnLaunched::kEventName);
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/apps/platform_apps/app_load_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void AppLoadService::OnExtensionUnloaded(
extensions::ExtensionPrefs* extension_prefs =
extensions::ExtensionPrefs::Get(browser_context);
if (WasUnloadedForReload(extension->id(), reason) &&
extension_prefs->IsActive(extension->id()) &&
(extension->is_nwjs_app() || extension_prefs->IsActive(extension->id())) &&
!HasPostReloadAction(extension->id())) {
post_reload_actions_[extension->id()].action_type = LAUNCH_FOR_RELOAD;
}
Expand Down

0 comments on commit 035ee07

Please sign in to comment.