Fix Authentication Request in Menu

This commit is contained in:
Kaede Akino committed 2026-09-03 15:18:41 +08:00
1 parent a3f0a08919
commit 8a92004da3
1 file changed
+6
+6
View File
@@ -138,6 +138,12 @@ struct TermindApp: App {
}
.defaultSize(width: 560, height: 240)
.windowResizability(.contentSize)
// SwiftUI lists every `Window` scene in the Window menu so people can
// open it themselves. This one is only ever raised by
// `ExternalAuthWindowPresenter` when an external client asks for a
// credential, so opening it by hand shows an empty window that closes
// itself a moment later. Take the item away.
.commandsRemoved()
}
}