]> git.sesse.net Git - vlc/commitdiff
* save the prefs only shortly before the app exits (makes the utilisation of the...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 11 Sep 2005 12:45:41 +0000 (12:45 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 11 Sep 2005 12:45:41 +0000 (12:45 +0000)
modules/gui/macosx/extended.m

index 45c7e56d47452d7ecaff7f04d324cdd20bcc65fc..d25d21652756e358c20527c4a3b0ede6d029b66e 100644 (file)
@@ -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];