Skip to content

Commit

Permalink
The user could not create DVD from the Console TabPage while the same…
Browse files Browse the repository at this point in the history
… operation was possible from the VmStorage TabPage.

Signed-off-by: Konstantina Chremmou <[email protected]>
  • Loading branch information
kc284 committed Nov 1, 2023
1 parent b9c5678 commit 81a2695
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions XenAdmin/ConsoleView/VNCTabView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1291,10 +1291,12 @@ internal void VMPowerOff()
{
toggleConsoleButton.Enabled = false;

VBD cddrive = source.FindVMCDROM();
bool allowEject = cddrive != null ? cddrive.allowed_operations.Contains(vbd_operations.eject) : false;
bool allowInsert = cddrive != null ? cddrive.allowed_operations.Contains(vbd_operations.insert) : false;
multipleDvdIsoList1.Enabled = (source.power_state == vm_power_state.Halted) && (allowEject || allowInsert);
VBD cdDrive = source.FindVMCDROM();

multipleDvdIsoList1.Enabled = cdDrive == null ||
source.power_state == vm_power_state.Halted &&
(cdDrive.allowed_operations.Contains(vbd_operations.eject) ||
cdDrive.allowed_operations.Contains(vbd_operations.insert));

sendCAD.Enabled = false;
}
Expand Down

0 comments on commit 81a2695

Please sign in to comment.