Skip to content

Commit

Permalink
improved settings window, specific groupboxes might be disabled on AM…
Browse files Browse the repository at this point in the history
…D cpu
  • Loading branch information
Valkirie committed Jun 18, 2021
1 parent 0394fe8 commit 1b1999b
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 37 deletions.
108 changes: 71 additions & 37 deletions DockerForm/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions DockerForm/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,23 @@ private void ProfilesList_SelectedIndexChanged(object sender, EventArgs e)
{
string ProfileName = item.SubItems[0].Text;
if (MainForm.ProfileDB.ContainsKey(ProfileName))
{
groupBoxPowerProfile.Enabled = true;
groupBoxTriggers.Enabled = true;
switch (MainForm.CurrentCPU.Constructor)
{
case CPU.Manufacturer.Intel:
groupBoxFIVR.Enabled = true;
groupBoxPowerBalance.Enabled = true;
break;
case CPU.Manufacturer.AMD:
groupBoxFIVR.Enabled = false;
groupBoxPowerBalance.Enabled = false;
break;
}

MenuItemRemoveSetting.Enabled = true;
}
}

foreach (Control ctrl in groupBoxFIVR.Controls)
Expand Down
3 changes: 3 additions & 0 deletions DockerForm/Settings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
<metadata name="SettingMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>164, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>47</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Expand Down

0 comments on commit 1b1999b

Please sign in to comment.