mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Camino only - Bug 362051: Don't show the Cannot Launch Camino dialog twice. r/sr=josh
This commit is contained in:
parent
7e1f0b5648
commit
ffe6cb6610
@ -378,10 +378,14 @@ NSString* const kPreviousSessionTerminatedNormallyKey = @"PreviousSessionTermina
|
||||
#if DEBUG
|
||||
NSLog(@"App will terminate notification");
|
||||
#endif
|
||||
if ([[PreferenceManager sharedInstanceDontCreate] getBooleanPref:"camino.remember_window_state" withSuccess:NULL])
|
||||
[[SessionManager sharedInstance] saveWindowState];
|
||||
else
|
||||
[[SessionManager sharedInstance] clearSavedState];
|
||||
// If there's no pref manager then we didn't really start up, so we do nothing.
|
||||
PreferenceManager* prefManager = [PreferenceManager sharedInstanceDontCreate];
|
||||
if (prefManager) {
|
||||
if ([prefManager getBooleanPref:"camino.remember_window_state" withSuccess:NULL])
|
||||
[[SessionManager sharedInstance] saveWindowState];
|
||||
else
|
||||
[[SessionManager sharedInstance] clearSavedState];
|
||||
}
|
||||
|
||||
[NetworkServices shutdownNetworkServices];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user