CP-36392: Remove unused conditional structure in VNCTabView

If check is virtually useless here

Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
This commit is contained in:
Danilo Del Busso 2021-09-14 13:21:52 +01:00
parent aa038cf0fc
commit 3ffd370d81

View File

@ -711,19 +711,11 @@ namespace XenAdmin.ConsoleView
} }
else if (source.power_state == vm_power_state.Paused) else if (source.power_state == vm_power_state.Paused)
{ {
if (source.allowed_operations.Contains(vm_operations.unpause))
{
//EnablePowerStateLabel(Messages.CONSOLE_POWER_STATE_PAUSED_UNPAUSE);
// CA-12637: Pause/UnPause is not supported in the GUI. Comment out // CA-12637: Pause/UnPause is not supported in the GUI. Comment out
// the EnablePowerStateLabel because it gives the appearance that we // the EnablePowerStateLabel because it gives the appearance that we
// support unpause via the GUI. // support unpause via the GUI.
DisablePowerStateLabel(Messages.CONSOLE_POWER_STATE_PAUSED); DisablePowerStateLabel(Messages.CONSOLE_POWER_STATE_PAUSED);
} }
else
{
DisablePowerStateLabel(Messages.CONSOLE_POWER_STATE_PAUSED);
}
}
else if (source.power_state == vm_power_state.Suspended) else if (source.power_state == vm_power_state.Suspended)
{ {
if (source.allowed_operations.Contains(vm_operations.resume) && if (source.allowed_operations.Contains(vm_operations.resume) &&