mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Add feedback IDs in comments
This commit is contained in:
parent
115de2d3a2
commit
8594996b87
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ struct XcodesApp: App {
|
|||
// This is intentionally used on a View, and not on a WindowGroup,
|
||||
// so that it's triggered when an individual window's phase changes instead of all window phases.
|
||||
// When used on a View it's also invoked on launch, which doesn't occur with a WindowGroup.
|
||||
// FB8954581 ScenePhase read from App doesn't return a value on launch
|
||||
.onChange(of: scenePhase) { newScenePhase in
|
||||
if case .active = newScenePhase {
|
||||
appState.updateIfNeeded()
|
||||
|
|
@ -69,6 +70,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
/// WindowGroup lets the user open more than one window right now, which is a little strange for an About window.
|
||||
/// (It's also weird that the main Xcode list window can be opened more than once, there should only be one.)
|
||||
/// To work around this, an AppDelegate holds onto a single instance of an NSWindow that is shown here.
|
||||
/// FB8954588 Scene / WindowGroup is missing API to limit the number of windows that can be created
|
||||
func showAboutWindow() {
|
||||
aboutWindow.center()
|
||||
aboutWindow.makeKeyAndOrderFront(nil)
|
||||
|
|
|
|||
Loading…
Reference in a new issue