summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/ui
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-01 12:44:41 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-01 12:44:41 +0200
commit4478b66c2456cb0d67c3bc8f1f0939fc118f39b0 (patch)
tree0a74b346de213996b328f9d8ce83d182bd04e903 /tidal_dl_ng/ui
parent8e7209f693c60a790aa5dee501bdb33af5932c78 (diff)
downloadtidal-dl-ng-4478b66c2456cb0d67c3bc8f1f0939fc118f39b0.tar.gz
✨ Able to remove single items from download queue.
Diffstat (limited to 'tidal_dl_ng/ui')
-rw-r--r--tidal_dl_ng/ui/main.py26
-rw-r--r--tidal_dl_ng/ui/main.ui8
2 files changed, 17 insertions, 17 deletions
diff --git a/tidal_dl_ng/ui/main.py b/tidal_dl_ng/ui/main.py
index 035f732..00565ee 100644
--- a/tidal_dl_ng/ui/main.py
+++ b/tidal_dl_ng/ui/main.py
@@ -445,23 +445,23 @@ class Ui_MainWindow:
self.lv_queue_download.addWidget(self.tr_queue_download)
- self.pb_queue_download_item_remove = QPushButton(self.w_central)
- self.pb_queue_download_item_remove.setObjectName("pb_queue_download_item_remove")
- self.pb_queue_download_item_remove.setEnabled(False)
+ 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)
- self.lv_queue_download.addWidget(self.pb_queue_download_item_remove)
+ self.lv_queue_download.addWidget(self.pb_queue_download_remove)
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
- self.pb_clear_finished = QPushButton(self.w_central)
- self.pb_clear_finished.setObjectName("pb_clear_finished")
+ self.pb_queue_download_clear_finished = QPushButton(self.w_central)
+ self.pb_queue_download_clear_finished.setObjectName("pb_queue_download_clear_finished")
- self.horizontalLayout_3.addWidget(self.pb_clear_finished)
+ self.horizontalLayout_3.addWidget(self.pb_queue_download_clear_finished)
- self.pb_clear_all = QPushButton(self.w_central)
- self.pb_clear_all.setObjectName("pb_clear_all")
+ self.pb_queue_download_clear_all = QPushButton(self.w_central)
+ self.pb_queue_download_clear_all.setObjectName("pb_queue_download_clear_all")
- self.horizontalLayout_3.addWidget(self.pb_clear_all)
+ self.horizontalLayout_3.addWidget(self.pb_queue_download_clear_all)
self.lv_queue_download.addLayout(self.horizontalLayout_3)
@@ -581,9 +581,9 @@ class Ui_MainWindow:
___qtreewidgetitem5.setText(3, QCoreApplication.translate("MainWindow", "Type", None))
___qtreewidgetitem5.setText(2, QCoreApplication.translate("MainWindow", "Name", None))
___qtreewidgetitem5.setText(1, QCoreApplication.translate("MainWindow", "obj", None))
- self.pb_queue_download_item_remove.setText(QCoreApplication.translate("MainWindow", "Remove", None))
- self.pb_clear_finished.setText(QCoreApplication.translate("MainWindow", "Clear Finished", None))
- self.pb_clear_all.setText(QCoreApplication.translate("MainWindow", "Clear All", None))
+ self.pb_queue_download_remove.setText(QCoreApplication.translate("MainWindow", "Remove", 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))
self.m_help.setTitle(QCoreApplication.translate("MainWindow", "Help", None))
diff --git a/tidal_dl_ng/ui/main.ui b/tidal_dl_ng/ui/main.ui
index 6a30e81..f7aafc6 100644
--- a/tidal_dl_ng/ui/main.ui
+++ b/tidal_dl_ng/ui/main.ui
@@ -656,9 +656,9 @@
</widget>
</item>
<item>
- <widget class="QPushButton" name="pb_queue_download_item_remove">
+ <widget class="QPushButton" name="pb_queue_download_remove">
<property name="enabled">
- <bool>false</bool>
+ <bool>true</bool>
</property>
<property name="text">
<string>Remove</string>
@@ -668,14 +668,14 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
- <widget class="QPushButton" name="pb_clear_finished">
+ <widget class="QPushButton" name="pb_queue_download_clear_finished">
<property name="text">
<string>Clear Finished</string>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="pb_clear_all">
+ <widget class="QPushButton" name="pb_queue_download_clear_all">
<property name="text">
<string>Clear All</string>
</property>