[vlc-commits] macosx: Disable resume options if keeping recent media is disabled

David Fuhrmann git at videolan.org
Sun Oct 9 19:24:00 CEST 2016


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Oct  9 19:03:21 2016 +0200| [c7e3b0e8c278f723279f7b67e941337d89915f9f] | committer: David Fuhrmann

macosx: Disable resume options if keeping recent media is disabled

Should help to point the user to the fact that both options are
related.

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

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

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index e7a4a1a..15182bf 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -575,6 +575,13 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
     [_intf_languagePopup selectItemAtIndex:sel];
 
     [self setupButton:_intf_continueplaybackPopup forIntList: "macosx-continue-playback"];
+    if (!var_InheritBool(p_intf, "macosx-recentitems")) {
+        [_intf_continueplaybackPopup setEnabled: NO];
+        [_intf_continueplaybackPopup setToolTip: _NS("Media files cannot be resumed because keeping recent media items is disabled.")];
+    } else {
+        [_intf_continueplaybackPopup setEnabled: YES];
+    }
+
     [self setupButton:_intf_appleremoteCheckbox forBoolValue: "macosx-appleremote"];
     [self setupButton:_intf_appleremote_sysvolCheckbox forBoolValue: "macosx-appleremote-sysvol"];
     [self setupButton:_intf_statusIconCheckbox forBoolValue: "macosx-statusicon"];



More information about the vlc-commits mailing list