mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 23:39:51 +01:00
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:
parent
aa038cf0fc
commit
3ffd370d81
@ -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) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user