File tree 4 files changed +3
-17
lines changed
4 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ extension VMData {
396
396
var stateLabel : String {
397
397
switch state {
398
398
case . stopped:
399
- if registryEntry? . hasSaveState == true {
399
+ if registryEntry? . isSuspended == true {
400
400
return NSLocalizedString ( " Suspended " , comment: " VMData " ) ;
401
401
} else {
402
402
return NSLocalizedString ( " Stopped " , comment: " VMData " ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ extension UTMData {
34
34
guard let wrapped = vm. wrapped else {
35
35
return
36
36
}
37
- if wrapped. registryEntry. hasSaveState {
37
+ if wrapped. registryEntry. isSuspended {
38
38
wrapped. requestVmDeleteState ( )
39
39
}
40
40
}
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ extension VMDisplayWindowController: NSWindowDelegate {
287
287
guard !isSecondary else {
288
288
return true
289
289
}
290
- guard !( vm. state == . stopped || ( vm. state == . paused && vm. registryEntry. hasSaveState ) ) else {
290
+ guard !( vm. state == . stopped || ( vm. state == . paused && vm. registryEntry. isSuspended ) ) else {
291
291
return true
292
292
}
293
293
guard !isNoQuitConfirmation else {
Original file line number Diff line number Diff line change @@ -354,20 +354,6 @@ extension UTMRegistryEntry {
354
354
#endif
355
355
}
356
356
357
- // MARK: - Objective C bridging
358
- // FIXME: these are NOT synchronized to the actor
359
- @objc extension UTMRegistryEntry {
360
- var hasSaveState : Bool {
361
- get {
362
- _isSuspended
363
- }
364
-
365
- set {
366
- _isSuspended = newValue
367
- }
368
- }
369
- }
370
-
371
357
extension UTMRegistryEntry {
372
358
struct File : Codable , Identifiable {
373
359
var url : URL
You can’t perform that action at this time.
0 commit comments