Skip to content

Commit

Permalink
v1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lich426 committed Jun 13, 2020
1 parent 51869a4 commit 1104931
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion FanCtrl/Data/OSD/OSDItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public string getUnitString()
switch (UnitType)
{
case OSDUnitType.Temperature:
return (OptionManager.getInstance().IsFahrenheit == false) ? " *C" : " *F";
return (OptionManager.getInstance().IsFahrenheit == false) ? " " : " ";

case OSDUnitType.RPM:
return " RPM";
Expand Down
4 changes: 4 additions & 0 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,10 @@ private void onDonatePictureBoxClick(object sender, MouseEventArgs e)
private void onOSDButtonClick(object sender, EventArgs e)
{
var form = new OSDForm();
form.onApplyCallback += (sender2, e2) =>
{
mEnableOSDToolStripMenuItem.Checked = OSDManager.getInstance().IsEnable;
};
form.ShowDialog();
form.Dispose();
}
Expand Down
3 changes: 3 additions & 0 deletions OSDForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public partial class OSDForm : Form
private ListViewItem mGroupEditItem = null;
private ListViewItem.ListViewSubItem mGroupEditSubItem = null;

public event EventHandler onApplyCallback;

public OSDForm()
{
InitializeComponent();
Expand Down Expand Up @@ -488,6 +490,7 @@ private void onApplyButtonClick(object sender, EventArgs e)
OSDManager.getInstance().IsEnable = mEnableCheckBox.Checked;
OSDManager.getInstance().setGroupList(mGroupList);
OSDManager.getInstance().write();
onApplyCallback(sender, e);
}

private void onOKButtonClick(object sender, EventArgs e)
Expand Down
Binary file modified Portable/FanCtrl_v1.1.6.zip
Binary file not shown.

0 comments on commit 1104931

Please sign in to comment.