Reparse rules config prior to update
Summary: We used to recreate the KConfig when rules needed to update. Now that it is a KSharedConfig, which is kept, it needs to be reparsed as it changes outside of KWin. BUG: 393788 FIXED-IN: 5.13.0 Test Plan: Restarted session, changing rules work again Reviewers: #kwin, #plasma Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D12706
This commit is contained in:
parent
9a9c34f352
commit
bed31e0557
1 changed files with 2 additions and 0 deletions
|
@ -1064,6 +1064,8 @@ void RuleBook::load()
|
||||||
deleteAll();
|
deleteAll();
|
||||||
if (!m_config) {
|
if (!m_config) {
|
||||||
m_config = KSharedConfig::openConfig(QStringLiteral(KWIN_NAME "rulesrc"), KConfig::NoGlobals);
|
m_config = KSharedConfig::openConfig(QStringLiteral(KWIN_NAME "rulesrc"), KConfig::NoGlobals);
|
||||||
|
} else {
|
||||||
|
m_config->reparseConfiguration();
|
||||||
}
|
}
|
||||||
int count = m_config->group("General").readEntry("count", 0);
|
int count = m_config->group("General").readEntry("count", 0);
|
||||||
for (int i = 1;
|
for (int i = 1;
|
||||||
|
|
Loading…
Reference in a new issue