mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Universal brightness fix
This commit is contained in:
@@ -161,6 +161,9 @@ namespace GHelper.Input
|
|||||||
|
|
||||||
if (isTUF)
|
if (isTUF)
|
||||||
{
|
{
|
||||||
|
if (delta < 0 && brightness <= 0) return;
|
||||||
|
if (delta > 0 && brightness >= 100) return;
|
||||||
|
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
if (brightness == ScreenBrightness.Get())
|
if (brightness == ScreenBrightness.Get())
|
||||||
Program.toast.RunToast(ScreenBrightness.Adjust(delta) + "%", (delta < 0 ) ? ToastIcon.BrightnessDown : ToastIcon.BrightnessUp);
|
Program.toast.RunToast(ScreenBrightness.Adjust(delta) + "%", (delta < 0 ) ? ToastIcon.BrightnessDown : ToastIcon.BrightnessUp);
|
||||||
|
|||||||
Reference in New Issue
Block a user