1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-25 14:03:58 +03:00

close config window before close latte

This commit is contained in:
Johan Smith Agudelo Rodriguez 2017-03-12 13:30:54 -05:00
parent af8f844bc6
commit 0375e15d0a
2 changed files with 5 additions and 5 deletions

View File

@ -966,6 +966,9 @@ void DockView::closeApplication()
{
DockCorona *dockCorona = qobject_cast<DockCorona *>(this->corona());
if (m_configView)
m_configView->close();
if (dockCorona)
dockCorona->closeApplication();
}

View File

@ -66,7 +66,6 @@ VisibilityManagerPrivate::~VisibilityManagerPrivate()
{
wm->removeDockStruts(view->winId());
wm->removeDock(view->winId());
saveConfig();
}
inline void VisibilityManagerPrivate::setMode(Dock::Visibility mode)
@ -447,10 +446,8 @@ inline void VisibilityManagerPrivate::restoreConfig()
qDebug() << config.entryMap();
connect(view->containment(), &Plasma::Containment::userConfiguringChanged
, this, [&](bool configuring) {
if (configuring)
return;
saveConfig();
if (!configuring)
saveConfig();
});
}