fix #136, load visibility with a timer in startup

pull/1/head
Johan Smith Agudelo Rodriguez 8 years ago
parent 5b1d5b79bd
commit a13957e59b

@ -364,7 +364,14 @@ inline void VisibilityManagerPrivate::restoreConfig()
auto mode = static_cast<Dock::Visibility>(config.readEntry("visibility", static_cast<int>(Dock::DodgeActive)));
emit q->timerShowChanged();
emit q->timerHideChanged();
setMode(mode);
if (mode != Dock::AlwaysVisible) {
QTimer::singleShot(2400, this, [&, mode]() {
setMode(mode);
});
} else {
setMode(mode);
}
}
bool VisibilityManagerPrivate::event(QEvent *ev)

Loading…
Cancel
Save