summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAl <26797547+Al12rs@users.noreply.github.com>2020-02-26 14:47:33 +0100
committerGitHub <noreply@github.com>2020-02-26 14:47:33 +0100
commit756056fcc3fce44f9ceaccfb5e9f2e9c9c0257fb (patch)
tree531bf2dfca9f033deea696ce2cbe8c3fd9b39105 /src/mainwindow.cpp
parent8bf4cd3b27066a6d4106e06a0e76e802386dd249 (diff)
parent87fcb7cf9edf27ff032672e1a509a09c52ba4138 (diff)
Merge pull request #1019 from Al12rs/context_menu_delay_fix
Fix context menu rendering delay and and general crappiness.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 74cb5354..5c2201e4 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -231,6 +231,12 @@ MainWindow::MainWindow(Settings &settings
, m_LinkDesktop(nullptr)
, m_LinkStartMenu(nullptr)
{
+ // disables incredibly slow menu fade in effect that looks and feels like crap.
+ // this was only happening to users with the windows
+ // "Fade or slide menus into view" effect enabled.
+ QApplication::setEffectEnabled(Qt::UI_FadeMenu, false);
+ QApplication::setEffectEnabled(Qt::UI_AnimateMenu, false);
+
QWebEngineProfile::defaultProfile()->setPersistentCookiesPolicy(QWebEngineProfile::NoPersistentCookies);
QWebEngineProfile::defaultProfile()->setHttpCacheMaximumSize(52428800);
QWebEngineProfile::defaultProfile()->setCachePath(settings.paths().cache());