Skip to content

Commit

Permalink
ui: do not terminate after last window is closed
Browse files Browse the repository at this point in the history
This should make way for future support for headless VMs.
Reverts 6437ad7
Resolves #3480
  • Loading branch information
osy committed Jan 13, 2022
1 parent 6a64c48 commit 23e03a2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Platform/macOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
class AppDelegate: NSObject, NSApplicationDelegate {
var data: UTMData?

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
true
}

func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {
guard let data = data else {
return .terminateNow
Expand Down

0 comments on commit 23e03a2

Please sign in to comment.