toolbar(iOS): disable removable drives from remote clients
This commit is contained in:
parent
8ea2fb430e
commit
f812ab2530
|
@ -52,6 +52,7 @@ struct VMToolbarDriveMenuView: View {
|
|||
}
|
||||
ForEach(config.drives) { drive in
|
||||
if drive.isExternal {
|
||||
#if !WITH_REMOTE // FIXME: implement remote feature
|
||||
Menu {
|
||||
Button {
|
||||
selectedDrive = drive
|
||||
|
@ -68,6 +69,12 @@ struct VMToolbarDriveMenuView: View {
|
|||
} label: {
|
||||
MenuLabel(label(for: drive), systemImage: session.vm.externalImageURL(for: drive) == nil ? "opticaldiscdrive" : "opticaldiscdrive.fill")
|
||||
}
|
||||
#else
|
||||
Button {
|
||||
} label: {
|
||||
MenuLabel(label(for: drive), systemImage: session.vm.externalImageURL(for: drive) == nil ? "opticaldiscdrive" : "opticaldiscdrive.fill")
|
||||
}.disabled(true)
|
||||
#endif
|
||||
} else if drive.imageType == .disk || drive.imageType == .cd {
|
||||
Button {
|
||||
} label: {
|
||||
|
|
Loading…
Reference in New Issue