Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Feb 5, 2023
1 parent 2d1dfd8 commit 8afa865
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Pages/CustomPresets.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ private void SetOnBat_Click(object sender, RoutedEventArgs e)

if (ryzenadj == null || ryzenadj == "") ryzenadj = "None";

if (ryzenadj == "None") BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Battery-Preset-Saved! On-battery-preset-has-been-disabled-successfully.", false);
else BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Battery-Preset-Saved! On-battery-preset-has-been-saved-successfully.", false);

Settings.Default.BatteryPreset = ryzenadj;
Settings.Default.Save();
}
Expand All @@ -572,6 +575,9 @@ private void SetOnChar_Click(object sender, RoutedEventArgs e)

if (ryzenadj == null || ryzenadj == "") ryzenadj = "None";

if(ryzenadj == "None") BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Charge-Preset-Saved! On-charge-preset-has-been-disabled-successfully.", false);
else BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Charge-Preset-Saved! On-charge-preset-has-been-saved-successfully.", false);

Settings.Default.ChargingPreset = ryzenadj;
Settings.Default.Save();
}
Expand Down

0 comments on commit 8afa865

Please sign in to comment.