fix: restore catalogVM.controller wiring lost in RootView rewrite
This commit is contained in:
@@ -71,6 +71,8 @@ struct RootView: View {
|
|||||||
}
|
}
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
.onAppear {
|
.onAppear {
|
||||||
|
catalogVM.controller = controller
|
||||||
|
controller.setContinuousPlayback(continuousPlayback)
|
||||||
if auth.isLoggedIn && courses.isEmpty {
|
if auth.isLoggedIn && courses.isEmpty {
|
||||||
Task { await loadCourses() }
|
Task { await loadCourses() }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user