mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-11 13:18:13 +03:00
do not delay exit at all cases
--in the past a delay was needed in order for docks panels to slide out nicely, this is not needed any more because kwin takes responsibility for this.
This commit is contained in:
parent
00a3d15478
commit
447f0e549c
@ -168,21 +168,6 @@ Corona::~Corona()
|
||||
m_layoutsManager->synchronizer()->hideAllViews();
|
||||
m_viewSettingsFactory->deleteLater();
|
||||
|
||||
//! Don't delay the destruction under wayland in any case
|
||||
//! because it creates a crash with kwin effects
|
||||
//! https://bugs.kde.org/show_bug.cgi?id=392890
|
||||
if (!KWindowSystem::isPlatformWayland()) {
|
||||
QTimer::singleShot(400, [this]() {
|
||||
m_quitTimedEnded = true;
|
||||
});
|
||||
|
||||
while (!m_quitTimedEnded) {
|
||||
QGuiApplication::processEvents(QEventLoop::AllEvents, 50);
|
||||
}
|
||||
}
|
||||
|
||||
//! END: slide-out views when closing
|
||||
|
||||
m_viewsScreenSyncTimer.stop();
|
||||
|
||||
if (m_layoutsManager->memoryUsage() == MemoryUsage::SingleLayout) {
|
||||
@ -190,8 +175,8 @@ Corona::~Corona()
|
||||
}
|
||||
|
||||
qDebug() << "Latte Corona - unload: containments ...";
|
||||
|
||||
m_layoutsManager->unload();
|
||||
|
||||
m_plasmaGeometries->deleteLater();
|
||||
m_wm->deleteLater();
|
||||
m_dialogShadows->deleteLater();
|
||||
|
@ -319,6 +319,7 @@ void Manager::clearUnloadedContainmentsFromLinkedFile(QStringList containmentsId
|
||||
qDebug() << "unloads ::: " << conId;
|
||||
KConfigGroup containment = containments.group(conId);
|
||||
containment.deleteGroup();
|
||||
containment.sync();
|
||||
}
|
||||
|
||||
containments.sync();
|
||||
|
@ -559,8 +559,9 @@ void Storage::syncToLayoutFile(const Layout::GenericLayout *layout, bool removeL
|
||||
|
||||
if (!removeLayoutId) {
|
||||
newGroup.writeEntry("layoutId", "");
|
||||
newGroup.sync();
|
||||
}
|
||||
|
||||
newGroup.sync();
|
||||
}
|
||||
|
||||
oldContainments.sync();
|
||||
|
Loading…
Reference in New Issue
Block a user