diff options
| author | AL <26797547+Al12rs@users.noreply.github.com> | 2020-02-25 17:13:03 +0100 |
|---|---|---|
| committer | AL <26797547+Al12rs@users.noreply.github.com> | 2020-02-25 17:13:03 +0100 |
| commit | 87fcb7cf9edf27ff032672e1a509a09c52ba4138 (patch) | |
| tree | 531bf2dfca9f033deea696ce2cbe8c3fd9b39105 /src | |
| parent | 8bf4cd3b27066a6d4106e06a0e76e802386dd249 (diff) | |
Fix context menu rendering delay and and general crappiness.
This affected users that had the windows "Fade or slide menus into view" option enabled. Qt's implementation of these effects sucks
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
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()); |
