PowerControl: Show current time

This commit is contained in:
Kamil Trzciński 2023-01-21 20:39:04 +01:00
parent 7daa4ac27f
commit 54aec613ed
2 changed files with 13 additions and 1 deletions

View file

@ -1,10 +1,16 @@
using System.Globalization;
namespace PowerControl
{
internal class MenuStack
{
public static Menu.MenuRoot Root = new Menu.MenuRoot()
{
Name = String.Format("\r\n\r\nPower Control v{0}\r\n", Application.ProductVersion.ToString()),
Name = String.Format(
"\r\n\r\nPower Control v{0} <C4>-<C> <TIME={1}>\r\n",
Application.ProductVersion.ToString(),
Is24hClock ? "%H:%M:%S" : "%I:%M:%S %p"
),
Items =
{
Options.Profiles.Instance,
@ -33,5 +39,10 @@ namespace PowerControl
Options.SteamController.Instance
}
};
private static bool Is24hClock
{
get => DateTimeFormatInfo.CurrentInfo.ShortTimePattern.Contains("HH");
}
}
}

View file

@ -9,6 +9,7 @@
## 0.6.x
- PowerControl: Show current time
- PowerControl: Consider the foreground process to be holding profile configuration as long as it is running
- SteamController: Require administrator privileges
- PowerControl: Apply profile changes with a delay in bulk