diff options
Diffstat (limited to 'src/PYConfig.cc')
-rw-r--r-- | src/PYConfig.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc index 1373607..9e539c8 100644 --- a/src/PYConfig.cc +++ b/src/PYConfig.cc @@ -23,6 +23,7 @@ #include "PYTypes.h" #include "PYBus.h" #include "PYDoublePinyinTable.h" +#include "PYLibPinyin.h" namespace PY { @@ -336,6 +337,12 @@ Config::valueChangedCallback (IBusConfig *config, Config *self) { self->valueChanged (section, name, value); + if (self->m_section != section) + return; + if (self->m_section == "engine/Pinyin") + LibPinyinBackEnd::instance ().setPinyinOptions (self); + if (self->m_section == "engine/Bopomofo") + LibPinyinBackEnd::instance ().setChewingOptions (self); } static const struct { |