mirror of
https://github.com/Yuvi9587/Kemono-Downloader.git
synced 2025-12-29 16:14:44 +00:00
Update main.py
This commit is contained in:
8
main.py
8
main.py
@@ -2506,8 +2506,10 @@ class DownloaderApp(QWidget):
|
||||
is_only_archives = self.radio_only_archives and self.radio_only_archives.isChecked()
|
||||
is_only_audio = hasattr(self, 'radio_only_audio') and self.radio_only_audio.isChecked()
|
||||
|
||||
can_enable_subfolder_per_post_checkbox = not is_only_links and not is_only_archives and not is_only_audio
|
||||
|
||||
# "Subfolder per Post" can be enabled if it's not "Only Links" and not "Only Archives".
|
||||
# This means it CAN be enabled for "All", "Images/GIFs", "Videos", and "Only Audio" modes.
|
||||
can_enable_subfolder_per_post_checkbox = not is_only_links and not is_only_archives
|
||||
|
||||
if self.use_subfolder_per_post_checkbox:
|
||||
self.use_subfolder_per_post_checkbox.setEnabled(can_enable_subfolder_per_post_checkbox)
|
||||
|
||||
@@ -4489,4 +4491,4 @@ if __name__ == '__main__':
|
||||
print("--- CRITICAL APPLICATION ERROR ---")
|
||||
print(f"An unhandled exception occurred: {e}")
|
||||
traceback.print_exc()
|
||||
print("--- END CRITICAL ERROR ---")
|
||||
print("--- END CRITICAL ERROR ---")
|
||||
Reference in New Issue
Block a user