[vlc-commits] macosx: make sure to also update the UI when using the advanced preferences
Felix Paul Kühne
git at videolan.org
Sat Jun 1 14:35:00 CEST 2019
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun 1 11:53:18 2019 +0200| [15c0c88e820d46a4ec0050198c2f5c128912dfa0] | committer: Felix Paul Kühne
macosx: make sure to also update the UI when using the advanced preferences
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15c0c88e820d46a4ec0050198c2f5c128912dfa0
---
modules/gui/macosx/preferences/VLCSimplePrefsController.m | 1 -
modules/gui/macosx/preferences/prefs.m | 7 ++++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/preferences/VLCSimplePrefsController.m b/modules/gui/macosx/preferences/VLCSimplePrefsController.m
index 8719245d8c..be4ae46b60 100644
--- a/modules/gui/macosx/preferences/VLCSimplePrefsController.m
+++ b/modules/gui/macosx/preferences/VLCSimplePrefsController.m
@@ -43,7 +43,6 @@
#import "extensions/NSScreen+VLCAdditions.h"
#import "extensions/NSString+Helpers.h"
#import "extensions/NSFont+VLCAdditions.h"
-#import "main/CompatibilityFixes.h"
#import "main/VLCMain.h"
#import "main/VLCMain+OldPrefs.h"
#import "os-integration/VLCClickerManager.h"
diff --git a/modules/gui/macosx/preferences/prefs.m b/modules/gui/macosx/preferences/prefs.m
index 5f870970a3..d186e55550 100644
--- a/modules/gui/macosx/preferences/prefs.m
+++ b/modules/gui/macosx/preferences/prefs.m
@@ -57,11 +57,12 @@
#import <vlc_plugin.h>
#import "extensions/NSString+Helpers.h"
-#import "main/CompatibilityFixes.h"
#import "main/VLCMain.h"
#import "preferences/prefs.h"
#import "preferences/VLCSimplePrefsController.h"
#import "preferences/prefs_widgets.h"
+#import "extensions/NSFont+VLCAdditions.h"
+#import "os-integration/VLCClickerManager.h"
#define LEFTMARGIN 18
#define RIGHTMARGIN 18
@@ -217,6 +218,10 @@
[_rootTreeItem applyChanges];
fixIntfSettings();
config_SaveConfigFile(getIntf());
+ NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
+ [notificationCenter postNotificationName:VLCMediaKeySupportSettingChangedNotification object:nil];
+ [notificationCenter postNotificationName:VLCMacOSXInterfaceLargeTextSettingChanged object:nil];
+ [notificationCenter postNotificationName:VLCConfigurationChangedNotification object:nil];
[self.window orderOut:self];
}
More information about the vlc-commits
mailing list