Commit a14404fe by Orkhan Alikhanov

Fixed Theme.current not set when there is no rootViewController

parent 6eff97cd
...@@ -102,11 +102,11 @@ public extension Theme { ...@@ -102,11 +102,11 @@ public extension Theme {
- Parameter theme: A Theme. - Parameter theme: A Theme.
*/ */
static func apply(theme: Theme) { static func apply(theme: Theme) {
current = theme
guard let v = Application.rootViewController else { guard let v = Application.rootViewController else {
return return
} }
current = theme
apply(theme: theme, to: v) apply(theme: theme, to: v)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment