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; ...@@ -652,8 +652,6 @@ static VLCExtended *_o_sharedInstance = nil;
} }
free( psz_string ); free( psz_string );
[self savePrefs];
} }
...@@ -727,8 +725,6 @@ static VLCExtended *_o_sharedInstance = nil; ...@@ -727,8 +725,6 @@ static VLCExtended *_o_sharedInstance = nil;
vlc_object_release( p_aout ); vlc_object_release( p_aout );
} }
free( psz_string ); free( psz_string );
[self savePrefs];
} }
- (void)savePrefs - (void)savePrefs
...@@ -757,6 +753,20 @@ static VLCExtended *_o_sharedInstance = nil; ...@@ -757,6 +753,20 @@ static VLCExtended *_o_sharedInstance = nil;
- (BOOL)applicationShouldTerminate:(NSWindow *)sender - (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 */ /* save the prefs before shutting down */
[self savePrefs]; [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