diff options
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r-- | macosx/PictureController.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 1ffb3ae48..4965f76f8 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -44,6 +44,7 @@ else { [self showWindow:sender]; + [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"PictureSizeWindowIsOpen"]; if ([fPreviewController fullScreen] == YES) { [self setToFullScreenMode]; @@ -92,12 +93,16 @@ - (void)awakeFromNib { [fPictureWindow setDelegate:self]; + if( ![[self window] setFrameUsingName:@"PictureSizing"] ) + [[self window] center]; + [self setWindowFrameAutosaveName:@"PictureSizing"]; + [[self window] setExcludedFromWindowsMenu:YES]; } - (void)windowWillClose:(NSNotification *)aNotification { - +[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"PictureSizeWindowIsOpen"]; } - (BOOL)windowShouldClose:(id)fPictureWindow |