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:
parent
af8f844bc6
commit
0375e15d0a
@ -966,6 +966,9 @@ void DockView::closeApplication()
|
||||
{
|
||||
DockCorona *dockCorona = qobject_cast<DockCorona *>(this->corona());
|
||||
|
||||
if (m_configView)
|
||||
m_configView->close();
|
||||
|
||||
if (dockCorona)
|
||||
dockCorona->closeApplication();
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user