Settings page, themes and cut path check for future updates. Volume now saved to config.
This commit is contained in:
14
gui/modules/settings/handlers.py
Normal file
14
gui/modules/settings/handlers.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from gui.gui import Ui_MainWindow
|
||||
from modules.config import Config
|
||||
|
||||
|
||||
def register_handlers(ui: Ui_MainWindow):
|
||||
"""
|
||||
Register this module handlers
|
||||
:param ui:
|
||||
:return:
|
||||
"""
|
||||
|
||||
ui.theme_box.setCurrentText(Config.get().theme)
|
||||
|
||||
ui.theme_box.currentTextChanged.connect(lambda: Config.update("theme", ui.theme_box.currentText()))
|
||||
Reference in New Issue
Block a user