From a181b76124923f5e61b481c416fed27471cce719 Mon Sep 17 00:00:00 2001 From: Yuvi9587 <114073886+Yuvi9587@users.noreply.github.com> Date: Sun, 25 May 2025 17:18:11 +0530 Subject: [PATCH] Update main.py --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index edaddd4..2d53590 100644 --- a/main.py +++ b/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 ---") \ No newline at end of file