Skip to content

Commit

Permalink
fix: 判断特殊环境逻辑写反了
Browse files Browse the repository at this point in the history
没有加这个环境变量返回false,设置为1是true

Log:
Influence: 特殊设备判断
Change-Id: Ia7a99e20fa88a24a154196345762c4ceff6cec66
  • Loading branch information
kegechen committed Nov 20, 2021
1 parent 6b4bc29 commit cf580cd
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() != 1;
return qgetenv("DTK_DISABLED_SPECIAL_EFFECTS").toInt() != 0;
}
default:
return DGuiApplicationHelperPrivate::attributes.testFlag(attribute);
Expand Down

0 comments on commit cf580cd

Please sign in to comment.