🛠 dl object will be re-created after settings update to apply settings immediately. Related to #49
This commit is contained in:
+5
-2
@@ -122,6 +122,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
sys.exit(1)
|
||||
|
||||
if result:
|
||||
self._init_dl()
|
||||
self.thread_it(self.tidal_user_lists)
|
||||
|
||||
def _init_dl(self):
|
||||
# Init `Download` object.
|
||||
data_pb: ProgressBars = ProgressBars(
|
||||
item=self.s_item_advance,
|
||||
@@ -139,8 +143,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
progress=progress,
|
||||
)
|
||||
|
||||
self.thread_it(self.tidal_user_lists)
|
||||
|
||||
def _init_progressbar(self):
|
||||
self.pb_list = QtWidgets.QProgressBar()
|
||||
self.pb_item = QtWidgets.QProgressBar()
|
||||
@@ -348,6 +350,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
def on_settings_save(self):
|
||||
self.settings.save()
|
||||
self.apply_settings(self.settings)
|
||||
self._init_dl()
|
||||
|
||||
def search(self, query: str, types_media: SearchTypes) -> [ResultItem]:
|
||||
# If a direct link was searched for, skip search and create the object from the link directly.
|
||||
|
||||
Reference in New Issue
Block a user