From 0a6ff497deb06853dce16774dfa63fd1927d74e2 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 6 May 2024 11:33:45 +0200 Subject: [PATCH] BIM: Fixed resource contents --- src/Mod/BIM/Resources/Arch.qrc | 2 -- src/Mod/BIM/Resources/create_qrc.py | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/BIM/Resources/Arch.qrc b/src/Mod/BIM/Resources/Arch.qrc index e00f013c38..317e60a32a 100644 --- a/src/Mod/BIM/Resources/Arch.qrc +++ b/src/Mod/BIM/Resources/Arch.qrc @@ -152,8 +152,6 @@ icons/Part_document.svg icons/Sketch.svg icons/Tree_Part.svg - icons/banner.png - icons/bimtool.png icons/preferences-arch.svg icons/techdraw-ArchView.svg icons/techdraw-PageDefault.svg diff --git a/src/Mod/BIM/Resources/create_qrc.py b/src/Mod/BIM/Resources/create_qrc.py index 673dac43ed..f0b935d001 100755 --- a/src/Mod/BIM/Resources/create_qrc.py +++ b/src/Mod/BIM/Resources/create_qrc.py @@ -5,7 +5,9 @@ for subdir in ["icons", "ui", "translations"]: subpath = os.path.join(cdir, subdir) for f in sorted(os.listdir(subpath)): if f not in ["Arch.ts", "BIM.ts"]: - txt += " " + subdir + "/" + f + "\n" + ext = os.path.splitext(f)[1] + if ext.lower() in [".ts", ".qm", ".svg", ".ui"]: + txt += " " + subdir + "/" + f + "\n" txt += " \n\n" with open(os.path.join(cdir, "Arch.qrc"), "w") as resfile: resfile.write(txt)