✨ Downloads can be now paused / resumed. Fixes #149 & 324
👷 Shutdown is handled more gracefully.
This commit is contained in:
+17
-3
@@ -7,7 +7,7 @@
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import QCoreApplication, QLocale, QMetaObject, QRect, QSize, Qt
|
||||
from PySide6.QtGui import QAction, QFont, QPixmap
|
||||
from PySide6.QtGui import QAction, QFont, QIcon, QPixmap
|
||||
from PySide6.QtWidgets import (
|
||||
QAbstractItemView,
|
||||
QComboBox,
|
||||
@@ -455,11 +455,24 @@ class Ui_MainWindow:
|
||||
|
||||
self.lv_queue_download.addWidget(self.tr_queue_download)
|
||||
|
||||
self.horizontalLayout_4 = QHBoxLayout()
|
||||
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||||
self.pb_queue_download_remove = QPushButton(self.w_central)
|
||||
self.pb_queue_download_remove.setObjectName("pb_queue_download_remove")
|
||||
self.pb_queue_download_remove.setEnabled(True)
|
||||
icon = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.EditClear))
|
||||
self.pb_queue_download_remove.setIcon(icon)
|
||||
|
||||
self.lv_queue_download.addWidget(self.pb_queue_download_remove)
|
||||
self.horizontalLayout_4.addWidget(self.pb_queue_download_remove)
|
||||
|
||||
self.pb_queue_download_toggle = QPushButton(self.w_central)
|
||||
self.pb_queue_download_toggle.setObjectName("pb_queue_download_toggle")
|
||||
icon1 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.MediaPlaybackStart))
|
||||
self.pb_queue_download_toggle.setIcon(icon1)
|
||||
|
||||
self.horizontalLayout_4.addWidget(self.pb_queue_download_toggle)
|
||||
|
||||
self.lv_queue_download.addLayout(self.horizontalLayout_4)
|
||||
|
||||
self.horizontalLayout_3 = QHBoxLayout()
|
||||
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||
@@ -557,7 +570,7 @@ class Ui_MainWindow:
|
||||
def retranslateUi(self, MainWindow):
|
||||
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", "MainWindow", None))
|
||||
self.a_version.setText(QCoreApplication.translate("MainWindow", "Version", None))
|
||||
self.a_exit.setText(QCoreApplication.translate("MainWindow", "Exit", None))
|
||||
self.a_exit.setText(QCoreApplication.translate("MainWindow", "Quit TIDAL-Downloader-NG", None))
|
||||
self.a_logout.setText(QCoreApplication.translate("MainWindow", "Logout", None))
|
||||
self.a_updates_check.setText(QCoreApplication.translate("MainWindow", "Check for Updates", None))
|
||||
___qtreewidgetitem = self.tr_lists_user.headerItem()
|
||||
@@ -585,6 +598,7 @@ class Ui_MainWindow:
|
||||
___qtreewidgetitem4.setText(2, QCoreApplication.translate("MainWindow", "Name", None))
|
||||
___qtreewidgetitem4.setText(1, QCoreApplication.translate("MainWindow", "obj", None))
|
||||
self.pb_queue_download_remove.setText(QCoreApplication.translate("MainWindow", "Remove", None))
|
||||
self.pb_queue_download_toggle.setText(QCoreApplication.translate("MainWindow", "Queue", None))
|
||||
self.pb_queue_download_clear_finished.setText(QCoreApplication.translate("MainWindow", "Clear Finished", None))
|
||||
self.pb_queue_download_clear_all.setText(QCoreApplication.translate("MainWindow", "Clear All", None))
|
||||
self.m_file.setTitle(QCoreApplication.translate("MainWindow", "File", None))
|
||||
|
||||
+26
-9
@@ -650,14 +650,31 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_queue_download_remove">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Remove</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_queue_download_remove">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Remove</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="QIcon::ThemeIcon::EditClear"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_queue_download_toggle">
|
||||
<property name="text">
|
||||
<string>Queue</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="QIcon::ThemeIcon::MediaPlaybackStart"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
@@ -787,7 +804,7 @@
|
||||
</action>
|
||||
<action name="a_exit">
|
||||
<property name="text">
|
||||
<string>Exit</string>
|
||||
<string>Quit TIDAL-Downloader-NG</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="a_logout">
|
||||
|
||||
Reference in New Issue
Block a user