Update main.py

This commit is contained in:
Yuvi9587
2025-05-25 17:18:11 +05:30
parent 8f085a8f63
commit a181b76124

View File

@@ -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 ---")