Commit fd323abd authored by Felix Paul Kühne's avatar Felix Paul Kühne

* save the prefs only shortly before the app exits (makes the utilisation of...

* save the prefs only shortly before the app exits (makes the utilisation of the extended-panel much faster)
parent ed195960
......@@ -652,8 +652,6 @@ static VLCExtended *_o_sharedInstance = nil;
}
free( psz_string );
[self savePrefs];
}
......@@ -727,8 +725,6 @@ static VLCExtended *_o_sharedInstance = nil;
vlc_object_release( p_aout );
}
free( psz_string );
[self savePrefs];
}
- (void)savePrefs
......@@ -757,6 +753,20 @@ static VLCExtended *_o_sharedInstance = nil;
- (BOOL)applicationShouldTerminate:(NSWindow *)sender
{
/* collaps all views so Cocoa saves the window position correctly */
if( o_adjImg_expanded )
{
[self extWin_exp_adjImg: nil];
}
if( o_audFlts_expanded )
{
[self extWin_exp_audFlts: nil];
}
if( o_vidFlts_expanded )
{
[self extWin_exp_vidFlts: nil];
}
/* save the prefs before shutting down */
[self savePrefs];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment