Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Aug 7, 2023
1 parent 225fb97 commit 8a752df
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void UpdateGUI(UserIndex controllerNo)
wasMini = false;
}

CardControl[] cards = { ccSection1, ccSection2, ccSection3, ccSection4, ccSection5, ccSection6, ccSection7, ccSection8, ccSection9, ccSection10, ccSection11, ccSection12, ccMini, ccClose };
CardControl[] cards = { ccSection1, ccSection2, ccSection3, ccSection4, ccSection5, ccSection51, ccSection6, ccSection7, ccSection8, ccSection9, ccSection10, ccSection11, ccSection12, ccMini, ccClose };
controller = new Controller(controllerNo);
bool connected = controller.IsConnected;

Expand Down Expand Up @@ -358,7 +358,6 @@ private void ToggleSwitch_Checked(object sender, RoutedEventArgs e)
Settings.Default.isMouse = ViewModel.Mouse;
Settings.Default.StartOnBoot = ViewModel.StartOnBoot;
Settings.Default.StartMini = ViewModel.StartMini;
Settings.Default.chargeLimit = ViewModel.ChargeLimit;
Settings.Default.Save();
}

Expand All @@ -382,7 +381,6 @@ private void ToggleSwitch_Unchecked(object sender, RoutedEventArgs e)
Settings.Default.isMouse = ViewModel.Mouse;
Settings.Default.StartOnBoot = ViewModel.StartOnBoot;
Settings.Default.StartMini = ViewModel.StartMini;
Settings.Default.chargeLimit = ViewModel.ChargeLimit;
Settings.Default.Save();
}

Expand Down Expand Up @@ -416,7 +414,7 @@ await Task.Run(() =>
if (Settings.Default.isASUS) App.wmi.DeviceSet(ASUSWmi.PerformanceMode, ASUSWmi.PerformanceTurbo);
}
App.wmi.DeviceSet(ASUSWmi.BatteryLimit, ViewModel.ChargeLimit);
if(ViewModel.ChargeLimit >= 50 && Settings.Default.isASUS) App.wmi.DeviceSet(ASUSWmi.BatteryLimit, ViewModel.ChargeLimit);
});

Settings.Default.acMode = ViewModel.AcMode;
Expand Down

0 comments on commit 8a752df

Please sign in to comment.