From 64b08e9cddacf866b3d491d5ef97fc8e5324cf7b Mon Sep 17 00:00:00 2001 From: Mark Ireland Date: Wed, 22 Sep 2021 20:04:19 +0100 Subject: [PATCH] Add info to AddCommandDialog --- UserInterface/Views/AddCommandDialog.axaml.cs | 6 ++++++ documentation/Commands.md | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/UserInterface/Views/AddCommandDialog.axaml.cs b/UserInterface/Views/AddCommandDialog.axaml.cs index e0e0b96..70a6ade 100644 --- a/UserInterface/Views/AddCommandDialog.axaml.cs +++ b/UserInterface/Views/AddCommandDialog.axaml.cs @@ -112,6 +112,12 @@ namespace UserInterface.Views item.ShowCommandInput = false; item.ShowKeyInput = false; break; + case AvailableCommands.HibernateCommand: + item.Description = "This command hibernates the PC immediately. "; + item.MoreInfoLink = "https://github.com/sleevezipper/hass-workstation-service/blob/master/documentation/Commands.md#hibernatecommand"; + item.ShowCommandInput = false; + item.ShowKeyInput = false; + break; case AvailableCommands.LogOffCommand: item.Description = "This command logs the current user off immediately. "; item.MoreInfoLink = "https://github.com/sleevezipper/hass-workstation-service/blob/master/documentation/Commands.md#logoffcommand"; diff --git a/documentation/Commands.md b/documentation/Commands.md index 255bf62..0c0555a 100644 --- a/documentation/Commands.md +++ b/documentation/Commands.md @@ -10,6 +10,10 @@ This command shuts down the computer immediately. It runs `shutdown /s`. This command restarts the computer immediately. It runs `shutdown /r`. +### HibernateCommand + +This command hibernates the computer immediately. It runs `shutdown /h`. + ### LogOffCommand This command logs off the current user. It runs `shutdown /l`.