]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #2096: enable resume in context menu for guest triggered sleep
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 18 Feb 2019 14:52:05 +0000 (15:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Feb 2019 10:46:17 +0000 (11:46 +0100)
We act correctly for an outside triggered suspend, but if the guest
suspends itself from inside (e.g., systemctl suspend,
`echo "standby" > /sys/power/state` or windows sleep) it has another
state (suspended vs. paused), so handled that also

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
www/manager6/qemu/CmdMenu.js

index da6f556ab036c110566f80fc0d4093e98698c277..bbcbffba7f2857b50d4355ddbbae411fb1f6c9b9 100644 (file)
@@ -40,6 +40,10 @@ Ext.define('PVE.qemu.CmdMenu', {
                running = true;
                stopped = false;
                break;
+           case 'suspended':
+               stopped = false;
+               suspended = true;
+               break;
            case 'paused':
                stopped = false;
                suspended = true;