Add feedback IDs in comments

This commit is contained in:
Brandon Evans 2020-12-27 16:49:08 -07:00
parent 115de2d3a2
commit 8594996b87
No known key found for this signature in database
GPG key ID: D58A4B8DB64F8E93

View file

@ -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)