antiflashbang: add dedicated toggle, make disabling also restore brightness

This commit is contained in:
end-4
2025-11-03 21:48:26 +01:00
parent 22fb48cd0a
commit f23e9e5da9
5 changed files with 48 additions and 3 deletions
@@ -86,7 +86,7 @@ Singleton {
property int rawMaxBrightness: 100
property real brightness
property real brightnessMultiplier: 1.0
property real multipliedBrightness: Math.max(0, Math.min(1, brightness * brightnessMultiplier))
property real multipliedBrightness: Math.max(0, Math.min(1, brightness * (Config.options.light.antiFlashbang.enable ? brightnessMultiplier : 1)))
property bool ready: false
property bool animateChanges: !monitor.isDdc