Skip to content

Commit

Permalink
macOS: assume configuration is valid here
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Dec 9, 2020
1 parent af0305c commit 02de9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Platform/macOS/Display/VMDisplayWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ class VMDisplayWindowController: NSWindowController {
stopToolbarItem.isEnabled = true
captureMouseToolbarItem.isEnabled = true
resizeConsoleToolbarItem.isEnabled = true
drivesToolbarItem.isEnabled = vmConfiguration?.countDrives ?? 0 > 0
drivesToolbarItem.isEnabled = vmConfiguration!.countDrives > 0
sharedFolderToolbarItem.isEnabled = vm.hasShareDirectoryEnabled
window!.title = vmConfiguration?.name ?? "UTM"
window!.title = vmConfiguration!.name
}

func enterSuspended(isBusy busy: Bool) {
Expand Down

0 comments on commit 02de9d6

Please sign in to comment.