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:
1 file changed
+1
-1
@@ -9,7 +9,7 @@ from .base import BaseOSDContainer
|
|||||||
class BrightnessOSDContainer(BaseOSDContainer):
|
class BrightnessOSDContainer(BaseOSDContainer):
|
||||||
def __init__(self, window, **kwargs):
|
def __init__(self, window, **kwargs):
|
||||||
super().__init__(window, **kwargs)
|
super().__init__(window, **kwargs)
|
||||||
self.brightness_service = Brightness.get_initial()
|
self.brightness_service = Brightness()
|
||||||
self._setup_specific_components()
|
self._setup_specific_components()
|
||||||
self._connect_specific_signals()
|
self._connect_specific_signals()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user