diff --git a/src/ui/dialogs/EmptyPopupDialog.py b/src/ui/dialogs/EmptyPopupDialog.py index 6400eb5..de625d3 100644 --- a/src/ui/dialogs/EmptyPopupDialog.py +++ b/src/ui/dialogs/EmptyPopupDialog.py @@ -140,7 +140,7 @@ class EmptyPopupDialog (QDialog ): SCOPE_CREATORS ="Creators" - def __init__ (self ,app_base_dir ,parent_app_ref ,parent =None ): + def __init__ (self ,user_data_path ,parent_app_ref ,parent =None ): super ().__init__ (parent ) self.parent_app = parent_app_ref @@ -148,7 +148,7 @@ class EmptyPopupDialog (QDialog ): self.setMinimumSize(int(400 * scale_factor), int(300 * scale_factor)) self.current_scope_mode = self.SCOPE_CREATORS - self .app_base_dir =app_base_dir + self.user_data_path = user_data_path app_icon =get_app_icon_object () if app_icon and not app_icon .isNull (): @@ -336,7 +336,7 @@ class EmptyPopupDialog (QDialog ): """ # --- NEW BEHAVIOR --- # Pass the app_base_dir and a reference to the main app (for translations/theme) - dialog = UpdateCheckDialog(self.app_base_dir, self.parent_app, self) + dialog = UpdateCheckDialog(self.user_data_path, self.parent_app, self) if dialog.exec_() == QDialog.Accepted: # --- MODIFIED: Get a list of profiles now --- diff --git a/src/ui/dialogs/UpdateCheckDialog.py b/src/ui/dialogs/UpdateCheckDialog.py index 0abbf36..7b2a20a 100644 --- a/src/ui/dialogs/UpdateCheckDialog.py +++ b/src/ui/dialogs/UpdateCheckDialog.py @@ -21,10 +21,10 @@ class UpdateCheckDialog(QDialog): and allows the user to select multiple to check for updates. """ - def __init__(self, app_base_dir, parent_app_ref, parent=None): + def __init__(self, user_data_path, parent_app_ref, parent=None): super().__init__(parent) self.parent_app = parent_app_ref - self.app_base_dir = app_base_dir + self.user_data_path = user_data_path self.selected_profiles_list = [] # Will store a list of {'name': ..., 'data': ...} self._init_ui() @@ -100,7 +100,7 @@ class UpdateCheckDialog(QDialog): def _load_profiles(self): """Loads all .json files from the creator_profiles directory as checkable items.""" - appdata_dir = os.path.join(self.app_base_dir, "appdata") + appdata_dir = self.user_data_path profiles_dir = os.path.join(appdata_dir, "creator_profiles") if not os.path.isdir(profiles_dir): diff --git a/src/ui/main_window.py b/src/ui/main_window.py index 916f64f..26b163a 100644 --- a/src/ui/main_window.py +++ b/src/ui/main_window.py @@ -339,7 +339,7 @@ class DownloaderApp (QWidget ): self.download_location_label_widget = None self.remove_from_filename_label_widget = None self.skip_words_label_widget = None - self.setWindowTitle("Kemono Downloader v7.6.0") + self.setWindowTitle("Kemono Downloader v7.6.1") setup_ui(self) self._connect_signals() if hasattr(self, 'character_input'): @@ -6617,7 +6617,7 @@ class DownloaderApp (QWidget ): self._tr("restore_pending_message_creator_selection", "Please 'Restore Download' or 'Discard Session' before selecting new creators.")) return - dialog = EmptyPopupDialog(self.app_base_dir, self) + dialog = EmptyPopupDialog(self.user_data_path, self) if dialog.exec_() == QDialog.Accepted: # --- NEW BATCH UPDATE LOGIC --- if hasattr(dialog, 'update_profiles_list') and dialog.update_profiles_list: diff --git a/directory_tree.txt b/structure.txt similarity index 99% rename from directory_tree.txt rename to structure.txt index 9e8998f..bde55bc 100644 --- a/directory_tree.txt +++ b/structure.txt @@ -107,5 +107,5 @@ │ ├── network_utils.py │ ├── resolution.py │ └── text_utils.py -├── structure.py +├── structure.txt └── yt-dlp.exe \ No newline at end of file