mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
fixup! feat: 进入应用前检测平台并提示
This commit is contained in:
@@ -386,8 +386,10 @@ void AppIntoPage::setAppinfoTags(const QStringList &tagList)
|
|||||||
|
|
||||||
void AppIntoPage::notifyUserUnsupportedTags(bool ubuntuSupport, bool deepinSupport, bool uosSupport)
|
void AppIntoPage::notifyUserUnsupportedTags(bool ubuntuSupport, bool deepinSupport, bool uosSupport)
|
||||||
{
|
{
|
||||||
bool checkdeepin = (Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Deepin && !deepinSupport);
|
bool isDeepin = Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Deepin;
|
||||||
bool checkuos = (Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Uos && !uosSupport);
|
bool isUOS = Dtk::Core::DSysInfo::productType() == Dtk::Core::DSysInfo::Uos;
|
||||||
|
bool checkdeepin = (isDeepin && !deepinSupport);
|
||||||
|
bool checkuos = (isUOS && !uosSupport);
|
||||||
bool isUbuntu = false;
|
bool isUbuntu = false;
|
||||||
if (!checkdeepin && !checkuos)
|
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"));
|
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"));
|
Utils::sendNotification("spark-store", tr("Warning"), tr("The current application does not support current platform, there may be problems"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user