mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-31 20:54:22 +01:00
PowerControl: Show current time
This commit is contained in:
parent
7daa4ac27f
commit
54aec613ed
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue