From 753945228ef82273e297d4756a5b32748dd6c319 Mon Sep 17 00:00:00 2001 From: uniartisan Date: Tue, 14 Mar 2023 14:33:35 +0800 Subject: [PATCH] =?UTF-8?q?fixup!=20feat:=20=E8=BF=9B=E5=85=A5=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=89=8D=E6=A3=80=E6=B5=8B=E5=B9=B3=E5=8F=B0=E5=B9=B6?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/appintopage.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/appintopage.cpp b/src/pages/appintopage.cpp index eb739bf..47ec644 100644 --- a/src/pages/appintopage.cpp +++ b/src/pages/appintopage.cpp @@ -386,8 +386,10 @@ void AppIntoPage::setAppinfoTags(const QStringList &tagList) void AppIntoPage::notifyUserUnsupportedTags(bool ubuntuSupport, bool deepinSupport, bool uosSupport) { - bool checkdeepin = (Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Deepin && !deepinSupport); - bool checkuos = (Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Uos && !uosSupport); + bool isDeepin = Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Deepin; + bool isUOS = Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Uos; + bool checkdeepin = (isDeepin && !deepinSupport); + bool checkuos = (isUOS && !uosSupport); bool isUbuntu = false; if (!checkdeepin && !checkuos) { @@ -417,7 +419,7 @@ void AppIntoPage::notifyUserUnsupportedTags(bool ubuntuSupport, bool deepinSuppo { Utils::sendNotification("spark-store", tr("Warning"), tr("The current application does not support Ubuntu, there may be problems")); } - else if (!isUbuntu) + else if (!isUbuntu && !isDeepin && !isUOS) { Utils::sendNotification("spark-store", tr("Warning"), tr("The current application does not support current platform, there may be problems")); }