From 58c22796f0d67ff86a6d9b6ab74b91b60c986138 Mon Sep 17 00:00:00 2001 From: faroukbmiled Date: Thu, 21 Sep 2023 19:14:30 +0100 Subject: [PATCH] show folder instead of id if item is invalid --- boiiiwd_package/src/library_tab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boiiiwd_package/src/library_tab.py b/boiiiwd_package/src/library_tab.py index eebbd28..2e28cdf 100644 --- a/boiiiwd_package/src/library_tab.py +++ b/boiiiwd_package/src/library_tab.py @@ -1,4 +1,3 @@ -from src.CTkToolTip import ctk_tooltip from src.imports import * from src.helpers import * @@ -253,10 +252,12 @@ class LibraryTab(ctk.CTkScrollableFrame): except: pass self.item_block_list.add(curr_folder_name) image_path = b_mod_img if item_type == "mod" else b_map_img + text_to_add = re.sub(r'ID:\s+\d+', f'Folder: {curr_folder_name}', text_to_add) text_to_add += " | ⚠️" elif (curr_folder_name not in self.added_folders and (workshop_id in self.ids_added or workshop_id == "None")): try: self.remove_item_by_option(items_file, curr_folder_name, "folder_name") except: pass + text_to_add = re.sub(r'ID:\s+\d+', f'Folder: {curr_folder_name}', text_to_add) image_path = b_mod_img if item_type == "mod" else b_map_img text_to_add += " | ⚠️"