From 687c5d6bcf5b1778c44a0c044debcff457036d3d Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 17 Jun 2026 01:46:02 +0545 Subject: [PATCH] refactor(src/window/osd): replace Brightness.get_initial() with Brightness() to drop encapsulationRemove Brightness.get_initial() call and instantiate Brightness directly, simplifying the API and making the service easier to test and extend. --- src/window/osd/components/brightness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window/osd/components/brightness.py b/src/window/osd/components/brightness.py index 8499d72..ea3c53d 100644 --- a/src/window/osd/components/brightness.py +++ b/src/window/osd/components/brightness.py @@ -9,7 +9,7 @@ from .base import BaseOSDContainer class BrightnessOSDContainer(BaseOSDContainer): def __init__(self, window, **kwargs): super().__init__(window, **kwargs) - self.brightness_service = Brightness.get_initial() + self.brightness_service = Brightness() self._setup_specific_components() self._connect_specific_signals()