mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-24 17:33:50 +03:00
dont add meta view in hiding views
--when the user is triggering an application launcher that is a popup in a hidden view it is not needed to enforced hidden afterwards. The blockHiding will be released automatically when the application launcher popup is closed. BUG:417239
This commit is contained in:
parent
1162b1e302
commit
3220bfefbd
@ -252,10 +252,6 @@ void GlobalShortcuts::activateLauncherMenu()
|
|||||||
|
|
||||||
if (highestPriorityView) {
|
if (highestPriorityView) {
|
||||||
if (highestPriorityView->visibility()->isHidden() && highestPriorityView->interface()->applicationLauncherInPopup()) {
|
if (highestPriorityView->visibility()->isHidden() && highestPriorityView->interface()->applicationLauncherInPopup()) {
|
||||||
if (!m_hideViews.contains(highestPriorityView)) {
|
|
||||||
m_hideViews.append(highestPriorityView);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_lastInvokedAction = m_singleMetaAction;
|
m_lastInvokedAction = m_singleMetaAction;
|
||||||
|
|
||||||
highestPriorityView->visibility()->setBlockHiding(true);
|
highestPriorityView->visibility()->setBlockHiding(true);
|
||||||
@ -264,8 +260,6 @@ void GlobalShortcuts::activateLauncherMenu()
|
|||||||
QTimer::singleShot(APPLETEXECUTIONDELAY, [this, highestPriorityView]() {
|
QTimer::singleShot(APPLETEXECUTIONDELAY, [this, highestPriorityView]() {
|
||||||
highestPriorityView->toggleAppletExpanded(highestPriorityView->interface()->applicationLauncherId());
|
highestPriorityView->toggleAppletExpanded(highestPriorityView->interface()->applicationLauncherId());
|
||||||
});
|
});
|
||||||
|
|
||||||
m_hideViewsTimer.start();
|
|
||||||
} else {
|
} else {
|
||||||
highestPriorityView->toggleAppletExpanded(highestPriorityView->interface()->applicationLauncherId());
|
highestPriorityView->toggleAppletExpanded(highestPriorityView->interface()->applicationLauncherId());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user