[vlc-commits] macosx: fix problem saving native fullscreen preference

David Fuhrmann git at videolan.org
Sun Dec 13 00:33:31 CET 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Dec 13 00:32:37 2015 +0100| [608d433e57c1f90e7d765549dceaf3830facef6d] | committer: David Fuhrmann

macosx: fix problem saving native fullscreen preference

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=608d433e57c1f90e7d765549dceaf3830facef6d
---

 modules/gui/macosx/simple_prefs.m |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 41bd321..aa50a85 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -918,13 +918,11 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
 
         config_PutInt(p_intf, "metadata-network-access", [_intf_artCheckbox state]);
 
-        config_PutInt(p_intf, "embedded-video", [_video_embeddedCheckbox state]);
 
         config_PutInt(p_intf, "macosx-appleremote", [_intf_appleremoteCheckbox state]);
         config_PutInt(p_intf, "macosx-appleremote-sysvol", [_intf_appleremote_sysvolCheckbox state]);
         config_PutInt(p_intf, "macosx-mediakeys", [_intf_mediakeysCheckbox state]);
         config_PutInt(p_intf, "macosx-interfacestyle", [_intf_style_darkButtonCell state]);
-        config_PutInt(p_intf, "macosx-nativefullscreenmode", [_video_nativeFullscreenCheckbox state]);
 
         if ([_intf_enableNotificationsCheckbox state] == NSOnState) {
             tmpString = getString("control");
@@ -1004,6 +1002,8 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
 
         config_PutInt(p_intf, "macosx-pause-minimized", [_video_pauseWhenMinimizedCheckbox state]);
 
+        config_PutInt(p_intf, "embedded-video", [_video_embeddedCheckbox state]);
+        config_PutInt(p_intf, "macosx-nativefullscreenmode", [_video_nativeFullscreenCheckbox state]);
         config_PutInt(p_intf, "macosx-vdev", [[_video_devicePopup selectedItem] tag]);
 
         config_PutPsz(p_intf, "snapshot-path", [[_video_snap_folderTextField stringValue] UTF8String]);
@@ -1203,14 +1203,13 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
         [_selectFolderPanel setCanCreateDirectories: YES];
         [_selectFolderPanel setPrompt: _NS("Choose")];
         [_selectFolderPanel beginSheetModalForWindow:self.window completionHandler: ^(NSInteger returnCode) {
-            if (returnCode == NSOKButton)
-            {
+            if (returnCode == NSOKButton) {
                 [_video_snap_folderTextField setStringValue: [[_selectFolderPanel URL] path]];
-                _videoSettingChanged = YES;
             }
         }];
-    } else
-        _videoSettingChanged = YES;
+    }
+
+    _videoSettingChanged = YES;
 }
 
 - (void)showVideoSettings



More information about the vlc-commits mailing list