Settings page, themes and cut path check for future updates. Volume now saved to config.

This commit is contained in:
BarsTiger
2022-11-29 23:27:20 +02:00
parent e9b7f1fdc1
commit 4d698235a1
14 changed files with 374 additions and 15 deletions

View File

@@ -0,0 +1 @@
from .handlers import *

View 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()))