Save settings after modal loop has been terminated.

This commit is contained in:
Jean-Philip Desjardins 2016-01-14 10:20:07 -05:00
parent bbbee1c33b
commit 416946ceb2

View File

@ -21,11 +21,11 @@ static PreferencesWindowController* g_sharedInstance = nil;
-(void)show
{
[NSApp runModalForWindow: [self window]];
CAppConfig::GetInstance().Save();
}
-(void)windowWillClose: (NSNotification*)notification
{
CAppConfig::GetInstance().Save();
[NSApp stopModal];
[self release];
g_sharedInstance = nil;