Skip to content

Commit 3d5fdd5

Browse files
committed
Replace WIndowGroup with Window to fix multi window and terminate issue
1 parent 27d5b03 commit 3d5fdd5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Xcodes/XcodesApp.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct XcodesApp: App {
1111
@StateObject private var updater = ObservableUpdater()
1212

1313
var body: some Scene {
14-
WindowGroup("Xcodes") {
14+
Window("Xcodes", id: "main") {
1515
MainWindow()
1616
.environmentObject(appState)
1717
.environmentObject(updater)
@@ -166,10 +166,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
166166
}
167167

168168
func applicationDidFinishLaunching(_: Notification) {}
169-
170-
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
171-
true
172-
}
173169
}
174170

175171
func localizeString(_ key: String, comment: String = "") -> String {

0 commit comments

Comments
 (0)