diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2023-12-21 19:35:28 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-12-25 16:38:10 +0200 |
commit | 7c724a49212a9ffdf42381d99648f15457867787 (patch) | |
tree | dcd3a0f16c58858979650c6d9dc7a5ec42849e1a /kxkb/kxkbconfig.cpp | |
parent | 9647d4c7ff182c1fadffb9c6218bc00132fe682e (diff) | |
download | tdebase-7c724a49212a9ffdf42381d99648f15457867787.tar.gz tdebase-7c724a49212a9ffdf42381d99648f15457867787.zip |
KXkb: add keyboard layout notification
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kxkb/kxkbconfig.cpp')
-rw-r--r-- | kxkb/kxkbconfig.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kxkb/kxkbconfig.cpp b/kxkb/kxkbconfig.cpp index 52ba6941b..0c3dc9e0a 100644 --- a/kxkb/kxkbconfig.cpp +++ b/kxkb/kxkbconfig.cpp @@ -129,6 +129,10 @@ bool KxkbConfig::load(int loadMode) } } + config->setGroup("Notifications"); + m_enableNotify = config->readBoolEntry("Enable", false); + m_notifyUseKMilo = config->readBoolEntry("UseKMilo", true); + delete config; return true; @@ -196,6 +200,10 @@ void KxkbConfig::save() config->deleteEntry("Additional"); config->deleteEntry("Layout"); + config->setGroup("Notifications"); + config->writeEntry("Enable", m_enableNotify); + config->writeEntry("UseKMilo", m_notifyUseKMilo); + config->sync(); delete config; |