diff --git a/hello/hello-platform/ver-windows/src/HPApp.swift b/hello/hello-platform/ver-windows/src/HPApp.swift index 58159e0..e634e1d 100644 --- a/hello/hello-platform/ver-windows/src/HPApp.swift +++ b/hello/hello-platform/ver-windows/src/HPApp.swift @@ -9,7 +9,7 @@ struct HPApp: App { WindowGroup("Hello platform") { HPView(delegate.hpVM) .onAppear { - delegate.setWindowIcons() + delegate.setup() } } } diff --git a/hello/hello-platform/ver-windows/src/HPAppDelegate.swift b/hello/hello-platform/ver-windows/src/HPAppDelegate.swift index 987b791..495f8c4 100644 --- a/hello/hello-platform/ver-windows/src/HPAppDelegate.swift +++ b/hello/hello-platform/ver-windows/src/HPAppDelegate.swift @@ -5,9 +5,10 @@ final class HPAppDelegate { let hp = HPComponent() let hpVM = HPVM() - init() { + func setup() { otherSetupConsoleLogging(hp.ctrl, "HP") hp.setup() + setWindowIcons() } func setWindowIcons() {