Merge pull request #27 from faroukbmiled/refactored

duplicated fix
This commit is contained in:
Ryuk 2023-10-05 15:28:12 -07:00 committed by GitHub
commit 609b6b509e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,7 +437,7 @@ class SettingsTab(ctk.CTkFrame):
folder_to_rename = os.path.join(folder_path, folder_name)
new_folder_name = new_name
while new_folder_name in processed_names:
if option == "PublisherID":
if new_name == publisher_id:
new_folder_name += f"_duplicated"
else:
new_folder_name += f"_{publisher_id}"
@ -447,7 +447,7 @@ class SettingsTab(ctk.CTkFrame):
new_path = os.path.join(folder_path, new_folder_name)
while os.path.exists(new_path):
if option == "PublishedID":
if new_name == publisher_id:
new_folder_name += f"_duplicated"
else:
new_folder_name += f"_{publisher_id}"