mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-10 21:18:19 +03:00
reduce hide dock and applets numbers interval
This commit is contained in:
parent
3ea40954fc
commit
a6a98f3ac7
@ -158,7 +158,7 @@ GlobalShortcuts::GlobalShortcuts(QObject *parent)
|
||||
m_hideDockTimer.setInterval(300);
|
||||
} else {
|
||||
//on wayland in acting just as simple timer that hides the dock afterwards
|
||||
m_hideDockTimer.setInterval(3000);
|
||||
m_hideDockTimer.setInterval(2500);
|
||||
}
|
||||
|
||||
connect(&m_hideDockTimer, &QTimer::timeout, this, &GlobalShortcuts::hideDockTimerSlot);
|
||||
@ -527,9 +527,15 @@ void GlobalShortcuts::showDock()
|
||||
}
|
||||
|
||||
if (it.value()->latteTasksPresent() && invokeShowNumbers(it.key())) {
|
||||
if (!m_hideDockTimer.isActive()) {
|
||||
m_hideDock = it.value();
|
||||
m_hideDock->visibility()->setBlockHiding(true);
|
||||
m_hideDockTimer.start();
|
||||
} else {
|
||||
m_hideDockTimer.stop();
|
||||
hideDockTimerSlot();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -537,9 +543,15 @@ void GlobalShortcuts::showDock()
|
||||
// we didn't find anything on primary, try all the panels
|
||||
for (auto it = views->constBegin(), end = views->constEnd(); it != end; ++it) {
|
||||
if (it.value()->latteTasksPresent() && invokeShowNumbers(it.key())) {
|
||||
if (!m_hideDockTimer.isActive()) {
|
||||
m_hideDock = it.value();
|
||||
m_hideDock->visibility()->setBlockHiding(true);
|
||||
m_hideDockTimer.start();
|
||||
} else {
|
||||
m_hideDockTimer.stop();
|
||||
hideDockTimerSlot();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user