mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Merge pull request #738 from bokicoder/patch-1
SessionMenu: add hibernate option
This commit is contained in:
@@ -65,6 +65,11 @@ SmartPanel {
|
||||
"title": I18n.tr("session-menu.suspend"),
|
||||
"isShutdown": false
|
||||
},
|
||||
"hibernate": {
|
||||
"icon": "hibernate",
|
||||
"title": I18n.tr("session-menu.hibernate"),
|
||||
"isShutdown": false
|
||||
},
|
||||
"reboot": {
|
||||
"icon": "reboot",
|
||||
"title": I18n.tr("session-menu.reboot"),
|
||||
@@ -159,6 +164,9 @@ SmartPanel {
|
||||
CompositorService.suspend()
|
||||
}
|
||||
break
|
||||
case "hibernate":
|
||||
CompositorService.hibernate()
|
||||
break
|
||||
case "reboot":
|
||||
CompositorService.reboot()
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user