Skip to content

Commit 60b33cf

Browse files
committed
Better window frame saving, fixes bug with offset thumbnail panels.
1 parent 286a051 commit 60b33cf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: PGWindowController.m

+2-6
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,9 @@ - (void)windowDidLoad
105105

106106
#pragma mark -<NSWindowDelegate>
107107

108-
- (void)windowDidResize:(NSNotification *)notification
108+
- (void)windowDidResize:(NSNotification *)aNotif
109109
{
110-
if(_shouldSaveFrame) [[NSUserDefaults standardUserDefaults] setObject:[[self window] stringWithSavedFrame] forKey:PGMainWindowFrameKey];
111-
}
112-
- (void)windowDidMove:(NSNotification *)notification
113-
{
114-
[self windowDidResize:nil];
110+
if(_shouldSaveFrame && [self window] == [aNotif object]) [[NSUserDefaults standardUserDefaults] setObject:[[self window] stringWithSavedFrame] forKey:PGMainWindowFrameKey];
115111
}
116112

117113
#pragma mark -

0 commit comments

Comments
 (0)