зеркало из https://github.com/mozilla/pjs.git
prefs toolbar state not remembered on restart (bug 346492)
This commit is contained in:
Родитель
ef0c22694a
Коммит
8d6448b3f1
|
@ -165,12 +165,11 @@ static NSString* const CacheInfoPaneSeenKey = @"MVPreferencePaneSeen"; // N
|
||||||
|
|
||||||
NSToolbar *toolbar = [[[NSToolbar alloc] initWithIdentifier:@"preferences.toolbar.1"] autorelease];
|
NSToolbar *toolbar = [[[NSToolbar alloc] initWithIdentifier:@"preferences.toolbar.1"] autorelease];
|
||||||
[toolbar setAllowsUserCustomization:NO];
|
[toolbar setAllowsUserCustomization:NO];
|
||||||
[toolbar setAutosavesConfiguration:NO];
|
[toolbar setAutosavesConfiguration:YES];
|
||||||
[toolbar setDelegate:self];
|
[toolbar setDelegate:self];
|
||||||
[toolbar setAlwaysCustomizableByDrag:NO];
|
[toolbar setAlwaysCustomizableByDrag:NO];
|
||||||
[toolbar setShowsContextMenu:NO];
|
[toolbar setShowsContextMenu:NO];
|
||||||
[mWindow setToolbar:toolbar];
|
[mWindow setToolbar:toolbar];
|
||||||
[toolbar setDisplayMode:NSToolbarDisplayModeIconAndLabel];
|
|
||||||
|
|
||||||
// save/restore the top-left window frame (because our size changes confuse the standard frame saving)
|
// save/restore the top-left window frame (because our size changes confuse the standard frame saving)
|
||||||
// (Cocoa will ensure that the window isn't placed totally offscreen)
|
// (Cocoa will ensure that the window isn't placed totally offscreen)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче