|
@@ -61,6 +61,7 @@ struct VMContextMenuModifier: ViewModifier {
|
|
}.help("Reveal where the VM is stored.")
|
|
}.help("Reveal where the VM is stored.")
|
|
Divider()
|
|
Divider()
|
|
#endif
|
|
#endif
|
|
|
|
+ #if !WITH_REMOTE // FIXME: implement remote feature
|
|
Button {
|
|
Button {
|
|
data.close(vm: vm) // close window
|
|
data.close(vm: vm) // close window
|
|
data.edit(vm: vm)
|
|
data.edit(vm: vm)
|
|
@@ -68,6 +69,7 @@ struct VMContextMenuModifier: ViewModifier {
|
|
Label("Edit", systemImage: "slider.horizontal.3")
|
|
Label("Edit", systemImage: "slider.horizontal.3")
|
|
}.disabled(vm.hasSuspendState || !vm.isModifyAllowed)
|
|
}.disabled(vm.hasSuspendState || !vm.isModifyAllowed)
|
|
.help("Modify settings for this VM.")
|
|
.help("Modify settings for this VM.")
|
|
|
|
+ #endif
|
|
if vm.hasSuspendState || !vm.isStopped {
|
|
if vm.hasSuspendState || !vm.isStopped {
|
|
Button {
|
|
Button {
|
|
confirmAction = .confirmStopVM
|
|
confirmAction = .confirmStopVM
|
|
@@ -120,6 +122,7 @@ struct VMContextMenuModifier: ViewModifier {
|
|
|
|
|
|
Divider()
|
|
Divider()
|
|
}
|
|
}
|
|
|
|
+ #if !WITH_REMOTE // FIXME: implement remote feature
|
|
Button {
|
|
Button {
|
|
shareItem = .utmCopy(vm)
|
|
shareItem = .utmCopy(vm)
|
|
showSharePopup.toggle()
|
|
showSharePopup.toggle()
|
|
@@ -164,6 +167,7 @@ struct VMContextMenuModifier: ViewModifier {
|
|
}.disabled(!vm.isModifyAllowed)
|
|
}.disabled(!vm.isModifyAllowed)
|
|
.help("Delete this VM and all its data.")
|
|
.help("Delete this VM and all its data.")
|
|
}
|
|
}
|
|
|
|
+ #endif
|
|
}
|
|
}
|
|
.modifier(VMShareItemModifier(isPresented: $showSharePopup, shareItem: shareItem))
|
|
.modifier(VMShareItemModifier(isPresented: $showSharePopup, shareItem: shareItem))
|
|
.modifier(VMConfirmActionModifier(vm: vm, confirmAction: $confirmAction) {
|
|
.modifier(VMConfirmActionModifier(vm: vm, confirmAction: $confirmAction) {
|