Commit e2d372d3 authored by David Edmundson's avatar David Edmundson

[krunner] Don't set the position three times in a row

Summary:
loadConfig calls setFreeFloating. setFreeFloating calls
setLocation

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: pereira.alex, ngraham, broulik, plasma-devel

CCBUG: 416145
Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28366
parent 1c48e351
......@@ -62,7 +62,6 @@ View::View(QWindow *)
setTitle(i18n("KRunner"));
m_config = KConfigGroup(KSharedConfig::openConfig(QStringLiteral("krunnerrc")), "General");
setFreeFloating(m_config.readEntry("FreeFloating", false));
loadConfig();
new AppAdaptor(this);
......@@ -116,12 +115,6 @@ View::View(QWindow *)
loadConfig();
});
if (m_floating) {
setLocation(Plasma::Types::Floating);
} else {
setLocation(Plasma::Types::TopEdge);
}
connect(qGuiApp, &QGuiApplication::focusWindowChanged, this, &View::slotFocusWindowChanged);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment