File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,13 @@ import Virtualization
67
67
68
68
private var activeResourceUrls : [ URL ] = [ ]
69
69
70
- override func reloadConfiguration( ) throws {
70
+ @ MainActor override func reloadConfiguration( ) throws {
71
71
let newConfig = try UTMAppleConfiguration . load ( from: path) as! UTMAppleConfiguration
72
72
let oldConfig = appleConfig
73
73
config = UTMConfigurationWrapper ( wrapping: newConfig)
74
- Task { @MainActor in
75
- updateConfigFromRegistry ( )
76
- if #available( macOS 12 , * ) {
77
- newConfig. system. boot. macRecoveryIpswURL = oldConfig. system. boot. macRecoveryIpswURL
78
- }
74
+ updateConfigFromRegistry ( )
75
+ if #available( macOS 12 , * ) {
76
+ newConfig. system. boot. macRecoveryIpswURL = oldConfig. system. boot. macRecoveryIpswURL
79
77
}
80
78
}
81
79
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ struct VMSettingsView<Config: UTMConfiguration>: View {
64
64
65
65
func cancel( ) {
66
66
presentationMode. wrappedValue. dismiss ( )
67
- data. busyWork {
68
- try data. discardChanges ( for: self . vm)
67
+ data. busyWorkAsync {
68
+ try await data. discardChanges ( for: self . vm)
69
69
}
70
70
}
71
71
}
You can’t perform that action at this time.
0 commit comments