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.

This commit is contained in:
sankalp committed 2026-06-17 01:46:02 +05:45
1 parent f78534dce0
commit 687c5d6bcf
1 file changed
+1 -1
+1 -1
View File
@@ -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()