Skip to content

Commit

Permalink
Revert "fix: 判断特殊环境逻辑写反了"
Browse files Browse the repository at this point in the history
This reverts commit cf580cd.

Reason for revert: <是否特效而非是否专有设备>

Change-Id: I64a692e7f223f715a9b77eebf28e918fae49ed14
  • Loading branch information
kegechen committed Nov 23, 2021
1 parent cf580cd commit 86b29eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/dguiapplicationhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ bool DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::Attribute attri
case IsDeepinEnvironment:
return QGuiApplicationPrivate::instance()->platformIntegration()->services()->desktopEnvironment().toLower().contains("deepin");
case IsSpecialEffectsEnvironment: {
return qgetenv("DTK_DISABLED_SPECIAL_EFFECTS").toInt() != 0;
return qgetenv("DTK_DISABLED_SPECIAL_EFFECTS").toInt() != 1;
}
default:
return DGuiApplicationHelperPrivate::attributes.testFlag(attribute);
Expand Down

0 comments on commit 86b29eb

Please sign in to comment.