Added support for custom download directories

This commit is contained in:
2025-04-22 21:46:15 -04:00
parent bcb86bc4b0
commit a3d8dc7887
13 changed files with 1030 additions and 467 deletions

View File

@@ -186,6 +186,7 @@ class Ui_MainWindow(object):
sizePolicy1.setHeightForWidth(self.pack_archive_chkbox.sizePolicy().hasHeightForWidth())
self.pack_archive_chkbox.setSizePolicy(sizePolicy1)
self.pack_archive_chkbox.setText(u"")
self.pack_archive_chkbox.setChecked(True)
self.pack_archive_row.addWidget(self.pack_archive_chkbox)
@@ -205,7 +206,7 @@ class Ui_MainWindow(object):
self.archive_file_entry = QLineEdit(self.centralwidget)
self.archive_file_entry.setObjectName(u"archive_file_entry")
self.archive_file_entry.setEnabled(False)
self.archive_file_entry.setEnabled(True)
self.verticalLayout_7.addWidget(self.archive_file_entry)
@@ -378,22 +379,56 @@ class Ui_MainWindow(object):
self.verticalLayout_8.addWidget(self.label_2)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.auto_update_row = QHBoxLayout()
self.auto_update_row.setObjectName(u"auto_update_row")
self.auto_update_chkbox = QCheckBox(self.centralwidget)
self.auto_update_chkbox.setObjectName(u"auto_update_chkbox")
sizePolicy1.setHeightForWidth(self.auto_update_chkbox.sizePolicy().hasHeightForWidth())
self.auto_update_chkbox.setSizePolicy(sizePolicy1)
self.horizontalLayout_2.addWidget(self.auto_update_chkbox)
self.auto_update_row.addWidget(self.auto_update_chkbox)
self.auto_update_chkbox_lbl = QLabel(self.centralwidget)
self.auto_update_chkbox_lbl.setObjectName(u"auto_update_chkbox_lbl")
self.horizontalLayout_2.addWidget(self.auto_update_chkbox_lbl)
self.auto_update_row.addWidget(self.auto_update_chkbox_lbl)
self.verticalLayout_8.addLayout(self.horizontalLayout_2)
self.verticalLayout_8.addLayout(self.auto_update_row)
self.custom_out_dir_row = QHBoxLayout()
self.custom_out_dir_row.setObjectName(u"custom_out_dir_row")
self.custom_out_dir_chkbox = QCheckBox(self.centralwidget)
self.custom_out_dir_chkbox.setObjectName(u"custom_out_dir_chkbox")
sizePolicy1.setHeightForWidth(self.custom_out_dir_chkbox.sizePolicy().hasHeightForWidth())
self.custom_out_dir_chkbox.setSizePolicy(sizePolicy1)
self.custom_out_dir_row.addWidget(self.custom_out_dir_chkbox)
self.custom_out_dir_chkbox_lbl = QLabel(self.centralwidget)
self.custom_out_dir_chkbox_lbl.setObjectName(u"custom_out_dir_chkbox_lbl")
self.custom_out_dir_row.addWidget(self.custom_out_dir_chkbox_lbl)
self.verticalLayout_8.addLayout(self.custom_out_dir_row)
self.custom_out_dir_entry_row = QHBoxLayout()
self.custom_out_dir_entry_row.setObjectName(u"custom_out_dir_entry_row")
self.custom_out_dir_entry = QLineEdit(self.centralwidget)
self.custom_out_dir_entry.setObjectName(u"custom_out_dir_entry")
self.custom_out_dir_entry.setEnabled(False)
self.custom_out_dir_entry_row.addWidget(self.custom_out_dir_entry)
self.custom_out_dir_btn = QPushButton(self.centralwidget)
self.custom_out_dir_btn.setObjectName(u"custom_out_dir_btn")
self.custom_out_dir_btn.setEnabled(False)
self.custom_out_dir_entry_row.addWidget(self.custom_out_dir_btn)
self.verticalLayout_8.addLayout(self.custom_out_dir_entry_row)
self.verticalSpacer = QSpacerItem(20, 50, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.MinimumExpanding)
@@ -421,7 +456,7 @@ class Ui_MainWindow(object):
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 1010, 30))
self.menubar.setGeometry(QRect(0, 0, 1010, 21))
MainWindow.setMenuBar(self.menubar)
self.retranslateUi(MainWindow)
@@ -461,6 +496,10 @@ class Ui_MainWindow(object):
self.label_2.setText(QCoreApplication.translate("MainWindow", u"App Settings", None))
self.auto_update_chkbox.setText("")
self.auto_update_chkbox_lbl.setText(QCoreApplication.translate("MainWindow", u"Check for updates on startup", None))
self.custom_out_dir_chkbox.setText("")
self.custom_out_dir_chkbox_lbl.setText(QCoreApplication.translate("MainWindow", u"Use a custom download directory", None))
self.custom_out_dir_entry.setPlaceholderText(QCoreApplication.translate("MainWindow", u"Output Path", None))
self.custom_out_dir_btn.setText(QCoreApplication.translate("MainWindow", u"Open...", None))
self.log_text_browser.setMarkdown("")
self.log_text_browser.setHtml(QCoreApplication.translate("MainWindow", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
@@ -468,7 +507,7 @@ class Ui_MainWindow(object):
"hr { height: 1px; border-width: 0; }\n"
"li.unchecked::marker { content: \"\\2610\"; }\n"
"li.checked::marker { content: \"\\2612\"; }\n"
"</style></head><body style=\" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"</style></head><body style=\" font-family:'.AppleSystemUIFont'; font-size:13pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;\"><br /></p></body></html>", None))
# retranslateUi

View File

@@ -255,6 +255,9 @@
<property name="text">
<string notr="true"/>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
@@ -278,7 +281,7 @@
<item>
<widget class="QLineEdit" name="archive_file_entry">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="placeholderText">
<string>File Name</string>
@@ -589,7 +592,7 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<layout class="QHBoxLayout" name="auto_update_row">
<item>
<widget class="QCheckBox" name="auto_update_chkbox">
<property name="sizePolicy">
@@ -612,6 +615,54 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="custom_out_dir_row">
<item>
<widget class="QCheckBox" name="custom_out_dir_chkbox">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="custom_out_dir_chkbox_lbl">
<property name="text">
<string>Use a custom download directory</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="custom_out_dir_entry_row">
<item>
<widget class="QLineEdit" name="custom_out_dir_entry">
<property name="enabled">
<bool>false</bool>
</property>
<property name="placeholderText">
<string>Output Path</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="custom_out_dir_btn">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Open...</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
@@ -666,7 +717,7 @@ p, li { white-space: pre-wrap; }
hr { height: 1px; border-width: 0; }
li.unchecked::marker { content: &quot;\2610&quot;; }
li.checked::marker { content: &quot;\2612&quot;; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'.AppleSystemUIFont'; font-size:13pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
@@ -681,7 +732,7 @@ li.checked::marker { content: &quot;\2612&quot;; }
<x>0</x>
<y>0</y>
<width>1010</width>
<height>30</height>
<height>21</height>
</rect>
</property>
</widget>