We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 286a051 commit 60b33cfCopy full SHA for 60b33cf
PGWindowController.m
@@ -105,13 +105,9 @@ - (void)windowDidLoad
105
106
#pragma mark -<NSWindowDelegate>
107
108
-- (void)windowDidResize:(NSNotification *)notification
+- (void)windowDidResize:(NSNotification *)aNotif
109
{
110
- if(_shouldSaveFrame) [[NSUserDefaults standardUserDefaults] setObject:[[self window] stringWithSavedFrame] forKey:PGMainWindowFrameKey];
111
-}
112
-- (void)windowDidMove:(NSNotification *)notification
113
-{
114
- [self windowDidResize:nil];
+ if(_shouldSaveFrame && [self window] == [aNotif object]) [[NSUserDefaults standardUserDefaults] setObject:[[self window] stringWithSavedFrame] forKey:PGMainWindowFrameKey];
115
}
116
117
#pragma mark -
0 commit comments