From c1c77d38e1449cb2312b333157b1f5bfb478587c Mon Sep 17 00:00:00 2001 From: youdiansaodongxi Date: Tue, 25 Jun 2024 13:54:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(src/extension/menu):=20=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=88=97=E8=A1=A8=E7=9A=84=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E4=B9=9F?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E2=80=9C=E4=BB=8E=E5=88=97=E8=A1=A8=E4=B8=AD?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/extension/menu/app-menu-plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension/menu/app-menu-plugin.cpp b/src/extension/menu/app-menu-plugin.cpp index 1a66284..e9711ea 100644 --- a/src/extension/menu/app-menu-plugin.cpp +++ b/src/extension/menu/app-menu-plugin.cpp @@ -21,6 +21,7 @@ #include "app-manager.h" #include "../context-menu-extension.h" #include "basic-app-model.h" +#include "user-config.h" #include #include @@ -182,6 +183,7 @@ void AppContentMenu::addUninstall(QObject *parent, const QString &appId, QList &list) { if (appLaunched == 1) return; + if (UserConfig::instance()->isPreInstalledApps(appId)) return; QDateTime installDate = QDateTime::fromString(appInsertTime, "yyyy-MM-dd hh:mm:ss"); if (!installDate.isValid()) return;