ContentView stops passing removed params to HomeView

This commit is contained in:
Brendan Szymanski 2026-06-10 17:36:39 -04:00
parent 2e75675d05
commit 76efb1af72
2 changed files with 3 additions and 10 deletions

View file

@ -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)) {

View file

@ -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] = []