mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 20:16:54 +01:00
Make sure we are changing the user interface style on the main thread
This commit is contained in:
parent
f2f3ccbe00
commit
66f8180006
@ -111,13 +111,15 @@ private extension SceneDelegate {
|
||||
}
|
||||
|
||||
func updateUserInterfaceStyle() {
|
||||
DispatchQueue.main.async {
|
||||
switch AppDefaults.userInterfaceColorPalette {
|
||||
case .automatic:
|
||||
window!.overrideUserInterfaceStyle = .unspecified
|
||||
self.window!.overrideUserInterfaceStyle = .unspecified
|
||||
case .light:
|
||||
window!.overrideUserInterfaceStyle = .light
|
||||
self.window!.overrideUserInterfaceStyle = .light
|
||||
case .dark:
|
||||
window!.overrideUserInterfaceStyle = .dark
|
||||
self.window!.overrideUserInterfaceStyle = .dark
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user