1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-27 14:50:21 +03:00

fix #330, visibility mode and options

This commit is contained in:
audoban 2017-03-25 16:17:41 -05:00
parent 9a3db3d325
commit 2e6c6cf945

View File

@ -448,14 +448,15 @@ inline void VisibilityManagerPrivate::restoreConfig()
emit q->timerShowChanged();
emit q->timerHideChanged();
setRaiseOnDesktop(config.readEntry("raiseOnDesktopChange", false));
setRaiseOnActivity(config.readEntry("raiseOnActivityChange", false));
if (mode == Dock::AlwaysVisible) {
setMode(mode);
} else {
QTimer::singleShot(5000, this, [ &, mode]() {
setMode(mode);
});
setRaiseOnDesktop(config.readEntry("raiseOnDesktopChange", false));
setRaiseOnActivity(config.readEntry("raiseOnActivityChange", false));
}
qDebug() << config.entryMap();