ContentView stops passing removed params to HomeView
This commit is contained in:
parent
2e75675d05
commit
76efb1af72
2 changed files with 3 additions and 10 deletions
|
|
@ -16,8 +16,6 @@ struct Luminate: App {
|
||||||
Window(id: "main") { window in
|
Window(id: "main") { window in
|
||||||
if let client {
|
if let client {
|
||||||
ContentView(
|
ContentView(
|
||||||
app: app,
|
|
||||||
window: window,
|
|
||||||
client: client,
|
client: client,
|
||||||
userId: userId
|
userId: userId
|
||||||
)
|
)
|
||||||
|
|
@ -43,8 +41,6 @@ struct Luminate: App {
|
||||||
|
|
||||||
struct ContentView: View {
|
struct ContentView: View {
|
||||||
|
|
||||||
var app: AdwaitaApp
|
|
||||||
var window: AdwaitaWindow
|
|
||||||
var client: JellyfinClient
|
var client: JellyfinClient
|
||||||
var userId: String
|
var userId: String
|
||||||
@State private var activePlayerItem: Components.Schemas.BaseItemDto?
|
@State private var activePlayerItem: Components.Schemas.BaseItemDto?
|
||||||
|
|
@ -61,12 +57,7 @@ struct ContentView: View {
|
||||||
onClose: { activePlayerItem = nil }
|
onClose: { activePlayerItem = nil }
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
HomeView(
|
HomeView()
|
||||||
app: app,
|
|
||||||
window: window,
|
|
||||||
client: client,
|
|
||||||
userId: userId
|
|
||||||
)
|
|
||||||
.topToolbar {
|
.topToolbar {
|
||||||
HeaderBar.end {
|
HeaderBar.end {
|
||||||
Menu(icon: .default(icon: .openMenu)) {
|
Menu(icon: .default(icon: .openMenu)) {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ import LuminateCore
|
||||||
|
|
||||||
public struct HomeView: View {
|
public struct HomeView: View {
|
||||||
|
|
||||||
|
nonisolated public init() {}
|
||||||
|
|
||||||
@Injected(\.client) var client
|
@Injected(\.client) var client
|
||||||
@Injected(\.userId) var userId
|
@Injected(\.userId) var userId
|
||||||
@State private var resumeItems: [Components.Schemas.BaseItemDto] = []
|
@State private var resumeItems: [Components.Schemas.BaseItemDto] = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue