mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-25 14:57:37 +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
|
||||
welcomeVersion = AppConstants.currentWelcomeVersion
|
||||
|
||||
// Close the window properly through the window controller
|
||||
if let window = NSApp.windows.first(where: { $0.contentViewController is NSHostingController<Self> }) {
|
||||
window.close()
|
||||
}
|
||||
// Close the window using the SwiftUI dismiss environment
|
||||
dismiss()
|
||||
|
||||
// Open settings after a delay to ensure the window is fully closed
|
||||
Task { @MainActor in
|
||||
|
|
|
|||
Loading…
Reference in a new issue