diff --git a/Sources/Luminate/Luminate.swift b/Sources/Luminate/Luminate.swift index 2b25cde..0b87dea 100644 --- a/Sources/Luminate/Luminate.swift +++ b/Sources/Luminate/Luminate.swift @@ -16,8 +16,6 @@ struct Luminate: App { Window(id: "main") { window in if let client { ContentView( - app: app, - window: window, client: client, userId: userId ) @@ -43,8 +41,6 @@ struct Luminate: App { struct ContentView: View { - var app: AdwaitaApp - var window: AdwaitaWindow var client: JellyfinClient var userId: String @State private var activePlayerItem: Components.Schemas.BaseItemDto? @@ -61,12 +57,7 @@ struct ContentView: View { onClose: { activePlayerItem = nil } ) } else { - HomeView( - app: app, - window: window, - client: client, - userId: userId - ) + HomeView() .topToolbar { HeaderBar.end { Menu(icon: .default(icon: .openMenu)) { diff --git a/Sources/LuminateHome/HomeView.swift b/Sources/LuminateHome/HomeView.swift index 4c7eb2e..aa890fd 100644 --- a/Sources/LuminateHome/HomeView.swift +++ b/Sources/LuminateHome/HomeView.swift @@ -3,6 +3,8 @@ import LuminateCore public struct HomeView: View { + nonisolated public init() {} + @Injected(\.client) var client @Injected(\.userId) var userId @State private var resumeItems: [Components.Schemas.BaseItemDto] = []