File tree 2 files changed +6
-2
lines changed
Amperfy/Screens/ViewController
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,9 @@ class LicenseVC: UIViewController {
336
336
// handle dark/light mode change
337
337
override func traitCollectionDidChange( _ previousTraitCollection: UITraitCollection ? ) {
338
338
super. traitCollectionDidChange ( previousTraitCollection)
339
- updateView ( )
339
+ DispatchQueue . main. async {
340
+ self . updateView ( )
341
+ }
340
342
}
341
343
342
344
}
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ class SettingsXCallbackURLsVC: UIViewController {
23
23
// handle dark/light mode change
24
24
override func traitCollectionDidChange( _ previousTraitCollection: UITraitCollection ? ) {
25
25
super. traitCollectionDidChange ( previousTraitCollection)
26
- updateView ( )
26
+ DispatchQueue . main. async {
27
+ self . updateView ( )
28
+ }
27
29
}
28
30
29
31
func updateView( ) {
You can’t perform that action at this time.
0 commit comments