prefs toolbar state not remembered on restart (bug 346492)

This commit is contained in:
pinkerton%aol.net 2006-08-12 01:54:48 +00:00
Родитель ef0c22694a
Коммит 8d6448b3f1
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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)