mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-09 05:18:18 +03:00
remove blockHidingEvent on SideBar startup
This commit is contained in:
parent
36aae05bc8
commit
bde33f98a9
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -182,6 +182,8 @@ private slots:
|
||||
void dodgeMaximized();
|
||||
void updateHiddenState();
|
||||
|
||||
bool isValidMode() const;
|
||||
|
||||
private:
|
||||
WindowSystem::AbstractWindowInterface *m_wm;
|
||||
Types::Visibility m_mode{Types::None};
|
||||
|
Loading…
Reference in New Issue
Block a user