mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
fix: compile error
This commit is contained in:
@@ -17,14 +17,14 @@ extension UnstableFeatures {
|
|||||||
let rootView = RootView()
|
let rootView = RootView()
|
||||||
.environment(\.managedObjectContext, DatabaseManager.shared.viewContext)
|
.environment(\.managedObjectContext, DatabaseManager.shared.viewContext)
|
||||||
|
|
||||||
UIApplication.topController = UIHostingController(rootView: rootView)
|
UIApplication.keyWindow?.rootViewController = UIHostingController(rootView: rootView)
|
||||||
}
|
}
|
||||||
|
|
||||||
static func onDisable() {
|
static func onDisable() {
|
||||||
let storyboard = UIStoryboard(name: "Main", bundle: .main)
|
let storyboard = UIStoryboard(name: "Main", bundle: .main)
|
||||||
let rootVC = storyboard.instantiateViewController(withIdentifier: "tabBarController") as! TabBarController
|
let rootVC = storyboard.instantiateViewController(withIdentifier: "tabBarController") as! TabBarController
|
||||||
|
|
||||||
UIApplication.topController = rootVC
|
UIApplication.keyWindow?.rootViewController = rootVC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user