Implemented saving of playlists to disk.

This commit is contained in:
The Wobbler 2025-01-25 20:45:43 +01:00
parent a7fc19f98b
commit 1007ac045f
7 changed files with 62 additions and 12 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/python3
import os
import sys
from PyQt6.QtWidgets import QApplication
from wobbl_tools.data_file import load_dataclass_json
@ -16,6 +17,8 @@ class Wobuzz:
self.utils = Utils(self)
os.chdir(self.utils.home_path)
self.settings = load_dataclass_json(Settings, self.utils.settings_location, self, True, True)
self.settings.set_attribute_change_event(self.on_settings_change)
@ -27,6 +30,7 @@ class Wobuzz:
def post_init(self):
self.gui.track_control.track_progress_slider.post_init()
self.library.load()
def on_settings_change(self, key, value):
self.gui.on_settings_change(key, value)