Fixed `--no-graphics` mode (#755)

Regression introduced in #746
This commit is contained in:
Fedor Korotkov 2024-03-12 06:42:35 -04:00 committed by GitHub
parent ee27cc57bb
commit ac5d0baa0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ struct Run: AsyncParsableCommand {
if noGraphics {
// enter the main even loop, without bringing up any UI,
// and just wait for the VM to exit.
NSApp.run()
NSApplication.shared.run()
} else {
runUI(suspendable, captureSystemKeys)
}