mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
fixes window dismissal in welcome
This commit is contained in:
parent
c3ad47baa4
commit
6db724c79b
1 changed files with 2 additions and 4 deletions
|
|
@ -167,10 +167,8 @@ struct WelcomeView: View {
|
||||||
// Finish action - save welcome version and close window
|
// Finish action - save welcome version and close window
|
||||||
welcomeVersion = AppConstants.currentWelcomeVersion
|
welcomeVersion = AppConstants.currentWelcomeVersion
|
||||||
|
|
||||||
// Close the window properly through the window controller
|
// Close the window using the SwiftUI dismiss environment
|
||||||
if let window = NSApp.windows.first(where: { $0.contentViewController is NSHostingController<Self> }) {
|
dismiss()
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Open settings after a delay to ensure the window is fully closed
|
// Open settings after a delay to ensure the window is fully closed
|
||||||
Task { @MainActor in
|
Task { @MainActor in
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue