Better startup sequence

This commit is contained in:
Kamil Trzciński 2022-11-11 20:01:44 +01:00
parent b8333064e2
commit d073ab0ff6
3 changed files with 35 additions and 24 deletions

View file

@ -29,12 +29,9 @@ namespace FanControl
}
fanModeSelectMenu.SelectedIndex = 0;
}
fanModeSelectNotifyMenu.SelectedIndex = 0;
private void timer1_Tick(object sender, EventArgs e)
{
fanControl.Update();
propertyGrid1.Refresh();
notifyIcon.ShowBalloonTip(3000, "Steam Deck Fan Control", "Fan Control Started", ToolTipIcon.Info);
}
private void fanModeSelect_SelectedValueChanged(object sender, EventArgs e)
@ -71,5 +68,17 @@ namespace FanControl
// Always revert to default on closing
fanControl.SetMode(FanControl.FanMode.Default);
}
private void updateTimer_Tick(object sender, EventArgs e)
{
fanControl.Update();
if (Visible)
{
propertyGrid1.Refresh();
}
notifyIcon.Text = String.Format("Fan: {0} RPM Mode: {1}", fanControl.CurrentRPM, fanControl.Mode);
}
}
}