Don't re-read config options which cannot have been changed
Reading config options is only done in options.cpp which is triggered by Workspace whenever the config changed.
This commit is contained in:
parent
00913cc4d6
commit
26b345358f
1 changed files with 0 additions and 2 deletions
|
@ -88,8 +88,6 @@ void Tiling::setEnabled(bool tiling)
|
||||||
config.writeEntry("TilingOn", m_enabled);
|
config.writeEntry("TilingOn", m_enabled);
|
||||||
config.sync();
|
config.sync();
|
||||||
options->tilingOn = m_enabled;
|
options->tilingOn = m_enabled;
|
||||||
options->tilingLayout = static_cast<TilingLayoutFactory::Layouts>(config.readEntry("TilingDefaultLayout", 0));
|
|
||||||
options->tilingRaisePolicy = config.readEntry("TilingRaisePolicy", 0);
|
|
||||||
|
|
||||||
if (m_enabled) {
|
if (m_enabled) {
|
||||||
connect(m_workspace, SIGNAL(clientAdded(KWin::Client*)), this, SLOT(createTile(KWin::Client*)));
|
connect(m_workspace, SIGNAL(clientAdded(KWin::Client*)), this, SLOT(createTile(KWin::Client*)));
|
||||||
|
|
Loading…
Reference in a new issue