summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-25 23:13:48 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-25 23:13:48 +0200
commit7f8912d83bcc92d5a5b74bf228b6ad12ce6067eb (patch)
tree388d45ddbd2609cf62fcd3f52e09a7361679fe05
parent07e5366193fc229886cc77f9b796e8db76934cf6 (diff)
downloadtidal-dl-ng-7f8912d83bcc92d5a5b74bf228b6ad12ce6067eb.tar.gz
🛠️ Display dialog on manual version update check, if no new version available.
-rw-r--r--tidal_dl_ng/dialog.py4
-rw-r--r--tidal_dl_ng/gui.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/tidal_dl_ng/dialog.py b/tidal_dl_ng/dialog.py
index b0b9d07..eb6481a 100644
--- a/tidal_dl_ng/dialog.py
+++ b/tidal_dl_ng/dialog.py
@@ -52,6 +52,10 @@ class DialogVersion(QtWidgets.QDialog):
)
else:
self.error_hide()
+
+ if not update_available:
+ self.ui.l_h_version_new.setText("Latest available version:")
+
self.ui.l_version_new.setText(update_info.version)
self.ui.l_changelog_details.setText(update_info.release_info)
self.ui.pb_download.clicked.connect(lambda: webbrowser.open(update_info.url))
diff --git a/tidal_dl_ng/gui.py b/tidal_dl_ng/gui.py
index e59686c..906d971 100644
--- a/tidal_dl_ng/gui.py
+++ b/tidal_dl_ng/gui.py
@@ -294,8 +294,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
def on_update_check(self):
is_available, info = update_available()
- if is_available:
- self.s_update_show.emit(True, is_available, info)
+ self.s_update_show.emit(True, is_available, info)
def apply_settings(self, settings: Settings):
l_cb = [