From e88f2c9af8ca058900f3f834c8c3c950ab6845e4 Mon Sep 17 00:00:00 2001 From: faroukbmiled Date: Fri, 22 Sep 2023 23:15:51 +0100 Subject: [PATCH] pass if item already named after the option --- boiiiwd_package/src/settings_tab.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boiiiwd_package/src/settings_tab.py b/boiiiwd_package/src/settings_tab.py index 9d41bd1..8c6ef7e 100644 --- a/boiiiwd_package/src/settings_tab.py +++ b/boiiiwd_package/src/settings_tab.py @@ -414,7 +414,13 @@ class SettingsTab(ctk.CTkFrame): continue if folder_name in main_app.app.library_tab.item_block_list: continue + json_path = os.path.join(zone_path, "workshop.json") + if option == "FolderName" and folder_name == extract_json_data(json_path, option): + continue + elif option == "PublisherID" and folder_name == extract_json_data(json_path, option): + continue + if os.path.exists(json_path): publisher_id = extract_json_data(json_path, 'PublisherID') folder_to_rename = os.path.join(folder_path, folder_name)