mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Init Screenpad brightness on start https://github.com/seerge/g-helper/issues/3301
This commit is contained in:
@@ -1026,6 +1026,13 @@ namespace GHelper.Input
|
||||
Program.toast.RunToast($"Screen Pad {toast}", delta > 0 ? ToastIcon.BrightnessUp : ToastIcon.BrightnessDown);
|
||||
}
|
||||
|
||||
public static void InitScreenpad()
|
||||
{
|
||||
if (!AppConfig.IsDUO()) return;
|
||||
int brightness = AppConfig.Get("screenpad");
|
||||
if (brightness >= 0) ApplyScreenpadAction(brightness);
|
||||
}
|
||||
|
||||
static void LaunchProcess(string command = "")
|
||||
{
|
||||
if (string.IsNullOrEmpty(command)) return;
|
||||
|
||||
@@ -231,7 +231,12 @@ namespace GHelper
|
||||
Logger.WriteLine("AutoSetting for " + isPlugged.ToString());
|
||||
|
||||
BatteryControl.AutoBattery(init);
|
||||
if (init) screenControl.InitMiniled();
|
||||
|
||||
if (init)
|
||||
{
|
||||
screenControl.InitMiniled();
|
||||
InputDispatcher.InitScreenpad();
|
||||
}
|
||||
|
||||
inputDispatcher.Init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user