toolbar(iOS): disable removable drives from remote clients

This commit is contained in:
osy 2024-02-21 10:59:36 -08:00
parent 8ea2fb430e
commit f812ab2530
1 changed files with 7 additions and 0 deletions

View File

@ -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: {