mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Re-init anime matrix on wake up https://github.com/seerge/g-helper/issues/1038
This commit is contained in:
@@ -42,7 +42,7 @@ namespace GHelper.AnimeMatrix
|
||||
|
||||
}
|
||||
|
||||
public void SetMatrix()
|
||||
public void SetMatrix(bool wakeUp = false)
|
||||
{
|
||||
|
||||
if (!IsValid) return;
|
||||
@@ -67,6 +67,8 @@ namespace GHelper.AnimeMatrix
|
||||
|
||||
mat.SetProvider();
|
||||
|
||||
if (wakeUp && AppConfig.ContainsModel("401")) mat.WakeUp();
|
||||
|
||||
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online))
|
||||
{
|
||||
mat.SetDisplayState(false);
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace GHelper
|
||||
BatteryControl.SetBatteryChargeLimit();
|
||||
|
||||
settingsForm.AutoKeyboard();
|
||||
settingsForm.matrix.SetMatrix();
|
||||
settingsForm.matrix.SetMatrix(true);
|
||||
}
|
||||
|
||||
private static void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e)
|
||||
|
||||
@@ -857,7 +857,7 @@ namespace GHelper
|
||||
labelBattery.Text = battery;
|
||||
if (!batteryMouseOver) labelCharge.Text = charge;
|
||||
|
||||
panelPerformance.AccessibleName = labelPerf.Text + " " + trayTip;
|
||||
//panelPerformance.AccessibleName = labelPerf.Text + " " + trayTip;
|
||||
});
|
||||
|
||||
|
||||
@@ -917,7 +917,7 @@ namespace GHelper
|
||||
Invoke(delegate
|
||||
{
|
||||
labelPerf.Text = modeText;
|
||||
panelPerformance.AccessibleName = labelPerf.Text + ". " + Program.trayIcon.Text;
|
||||
panelPerformance.AccessibleName = labelPerf.Text; // + ". " + Program.trayIcon.Text;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user