Reverting bad show on desktop not working

This commit is contained in:
your_username 2026-02-21 22:22:57 -05:00
parent 2547e23147
commit 142dfa4815
2 changed files with 0 additions and 26 deletions

View file

@ -14,7 +14,6 @@ namespace PerformanceOverlay
RTSSSharedMemoryNET.OSD? osd;
System.Windows.Forms.ContextMenuStrip contextMenu;
ToolStripMenuItem showItem;
ToolStripMenuItem showOnDesktopItem;
System.Windows.Forms.NotifyIcon notifyIcon;
System.Windows.Forms.Timer osdTimer;
Sensors sensors = new Sensors();
@ -54,16 +53,6 @@ namespace PerformanceOverlay
showItem.Click += ShowItem_Click;
showItem.Checked = Settings.Default.ShowOSD;
contextMenu.Items.Add(showItem);
showOnDesktopItem = new ToolStripMenuItem("Always show on &desktop");
showOnDesktopItem.Click += delegate
{
Settings.Default.ShowOnDesktop = !Settings.Default.ShowOnDesktop;
updateContextItems(contextMenu);
};
showOnDesktopItem.Checked = Settings.Default.ShowOnDesktop;
contextMenu.Items.Add(showOnDesktopItem);
contextMenu.Items.Add(new ToolStripSeparator());
foreach (var mode in Enum.GetValues<OverlayMode>())
{
@ -169,7 +158,6 @@ namespace PerformanceOverlay
}
showItem.Checked = Settings.Default.ShowOSD;
showOnDesktopItem.Checked = Settings.Default.ShowOnDesktop;
}
private void NotifyIcon_Click(object? sender, EventArgs e)
@ -270,13 +258,6 @@ namespace PerformanceOverlay
return;
}
if (!Settings.Default.ShowOnDesktop && !OSDHelpers.IsOSDForeground())
{
osdTimer.Interval = 1000;
osdReset();
return;
}
osdTimer.Interval = 250;
sensors.Update();

View file

@ -35,13 +35,6 @@ namespace PerformanceOverlay
set { Set("ShowOSD", value); }
}
public bool ShowOnDesktop
{
get { return Get<bool>("ShowOnDesktop", false); }
set { Set("ShowOnDesktop", value); }
}
public bool EnableFullOnPowerControl
{
get { return Get<bool>("EnableFullOnPowerControl", false); }