diff --git a/framelessquickhelper.cpp b/framelessquickhelper.cpp index b5abf15..62566ca 100644 --- a/framelessquickhelper.cpp +++ b/framelessquickhelper.cpp @@ -143,13 +143,5 @@ void FramelessQuickHelper::timerEvent(QTimerEvent *event) void FramelessQuickHelper::setBlurEffectEnabled(const bool enabled, const QColor &gradientColor) { -#if 0 -#ifdef Q_OS_WINDOWS - // TODO: let the user choose what he wants. - if (Utilities::isWin10OrGreater()) { - qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True"); - } -#endif -#endif Utilities::setBlurEffectEnabled(window(), enabled, gradientColor); } diff --git a/qtacrylicwidget.cpp b/qtacrylicwidget.cpp index e81e948..e535b44 100644 --- a/qtacrylicwidget.cpp +++ b/qtacrylicwidget.cpp @@ -145,14 +145,6 @@ void QtAcrylicWidget::showEvent(QShowEvent *event) if (!inited) { const QWindow *win = windowHandle(); FramelessWindowsManager::addWindow(win); -#if 0 -#ifdef Q_OS_WINDOWS - // TODO: let the user choose what he wants. - if (Utilities::isWin10OrGreater()) { - qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True"); - } -#endif -#endif Utilities::setBlurEffectEnabled(win, true); m_acrylicHelper.install(win); m_acrylicHelper.updateAcrylicBrush(tintColor());