From: Agnibho Mondal Date: Sat, 11 Nov 2023 11:34:13 +0000 (+0530) Subject: Protected items not shown for uninstallation X-Git-Tag: v0.5~15 X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=ef31b08de4fb01580dc0ef6e4c13f9f875ce28fd;p=medscript.git Protected items not shown for uninstallation --- diff --git a/installer.py b/installer.py index 7308175..b2eca27 100644 --- a/installer.py +++ b/installer.py @@ -160,12 +160,16 @@ class Installer(QMainWindow): self.plugin["path"].append(i) for i in self.preset["name"]: - self.installed.addItem("[preset]\t"+i) + if i not in self.protected: + self.installed.addItem("[preset]\t"+i) for i in self.template["name"]: - self.installed.addItem("[template]\t"+i) + if i not in self.protected: + self.installed.addItem("[template]\t"+i) for i in self.form["name"]: - self.installed.addItem("[form]\t"+i) + if i not in self.protected: + self.installed.addItem("[form]\t"+i) for i in self.plugin["name"]: - self.installed.addItem("[plugin]\t"+i) + if i not in self.protected: + self.installed.addItem("[plugin]\t"+i) except Exception as e: logging.exception(e)