From 09294b8599912a88ae929c372a840abcc7d485eb Mon Sep 17 00:00:00 2001 From: Michail Vourlakos <mvourlakos@gmail.com> Date: Sun, 10 Jan 2021 12:43:19 +0200 Subject: [PATCH] sync configuration to files after save configs --- app/layout/abstractlayout.cpp | 3 ++- app/layout/centrallayout.cpp | 1 + app/settings/universalsettings.cpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/layout/abstractlayout.cpp b/app/layout/abstractlayout.cpp index 84a6ab56c..5564899f4 100644 --- a/app/layout/abstractlayout.cpp +++ b/app/layout/abstractlayout.cpp @@ -51,7 +51,7 @@ AbstractLayout::AbstractLayout(QObject *parent, QString layoutFile, QString assi } AbstractLayout::~AbstractLayout() -{ +{ } void AbstractLayout::init() @@ -391,6 +391,7 @@ void AbstractLayout::saveConfig() m_layoutGroup.writeEntry("icon", m_icon); m_layoutGroup.writeEntry("lastUsedActivity", m_lastUsedActivity); m_layoutGroup.writeEntry("preferredForShortcutsTouched", m_preferredForShortcutsTouched); + m_layoutGroup.sync(); } } diff --git a/app/layout/centrallayout.cpp b/app/layout/centrallayout.cpp index 545f110a5..aea7d5ba9 100644 --- a/app/layout/centrallayout.cpp +++ b/app/layout/centrallayout.cpp @@ -173,6 +173,7 @@ void CentralLayout::saveConfig() m_layoutGroup.writeEntry("showInMenu", m_showInMenu); m_layoutGroup.writeEntry("disableBordersForMaximizedWindows", m_disableBordersForMaximizedWindows); m_layoutGroup.writeEntry("activities", m_activities); + m_layoutGroup.sync(); } //! OVERRIDES diff --git a/app/settings/universalsettings.cpp b/app/settings/universalsettings.cpp index 15ad71d48..97de7c949 100644 --- a/app/settings/universalsettings.cpp +++ b/app/settings/universalsettings.cpp @@ -544,6 +544,7 @@ void UniversalSettings::saveConfig() m_universalGroup.writeEntry("singleModeLayoutName", m_singleModeLayoutName); m_universalGroup.writeEntry("memoryUsage", (int)m_memoryUsage); m_universalGroup.writeEntry("mouseSensitivity", (int)m_sensitivity); + syncSettings(); } void UniversalSettings::cleanupSettings()