mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-07 23:33:52 +00:00
Show Full OSD if in Power Control mode
This commit is contained in:
parent
e376b9dcc8
commit
e12c00242b
7 changed files with 45 additions and 13 deletions
|
|
@ -35,6 +35,8 @@ namespace PowerControl
|
|||
DateTime? neptuneDeviceNextKey;
|
||||
System.Windows.Forms.Timer neptuneTimer;
|
||||
|
||||
SharedData<PowerControlSetting> sharedData = SharedData<PowerControlSetting>.CreateNew();
|
||||
|
||||
public Controller()
|
||||
{
|
||||
Instance.RunOnce(TitleWithVersion, "Global\\PowerControl");
|
||||
|
|
@ -294,6 +296,11 @@ namespace PowerControl
|
|||
|
||||
public void updateOSD()
|
||||
{
|
||||
sharedData.SetValue(new PowerControlSetting()
|
||||
{
|
||||
Current = rootMenu.Visible ? PowerControlVisible.Yes : PowerControlVisible.No
|
||||
});
|
||||
|
||||
if (!rootMenu.Visible)
|
||||
{
|
||||
osdClose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue