1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-08 13:18:09 +03:00

remove blockHidingEvent on SideBar startup

This commit is contained in:
Michail Vourlakos 2020-04-15 16:47:15 +03:00
parent 36aae05bc8
commit bde33f98a9
3 changed files with 12 additions and 5 deletions

View File

@ -492,11 +492,7 @@ void ContainmentInterface::toggleAppletExpanded(const int id)
PlasmaQuick::AppletQuickItem *ai = applet->property("_plasma_graphicObject").value<PlasmaQuick::AppletQuickItem *>();
if (ai) {
if (!ai->isActivationTogglesExpanded()) {
ai->setActivationTogglesExpanded(true);
}
emit applet->activated();
ai->setExpanded(!ai->isExpanded());
}
}
}

View File

@ -609,10 +609,19 @@ void VisibilityManager::raiseViewTemporarily()
});
}
bool VisibilityManager::isValidMode() const
{
return (m_mode != Types::None && m_mode != Types::NormalWindow);
}
void VisibilityManager::toggleHiddenState()
{
if (!m_latteView->inEditMode()) {
if (m_mode == Latte::Types::SideBar) {
if (m_blockHidingEvents.contains(Q_FUNC_INFO)) {
removeBlockHidingEvent(Q_FUNC_INFO);
}
if (m_isHidden) {
emit mustBeShown();
} else {

View File

@ -182,6 +182,8 @@ private slots:
void dodgeMaximized();
void updateHiddenState();
bool isValidMode() const;
private:
WindowSystem::AbstractWindowInterface *m_wm;
Types::Visibility m_mode{Types::None};