Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 64e03b1e authored by Frederik Gladhorn's avatar Frederik Gladhorn

Simplify if/else that all make the same call

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14213
parent 58f5bb62
......@@ -182,15 +182,11 @@ void Osd::showOsd()
if (rootObject->property("timeout").toInt() > 0) {
rootObject->setProperty("animateOpacity", false);
rootObject->setProperty("opacity", 1);
rootObject->setProperty("visible", true);
rootObject->setProperty("animateOpacity", true);
rootObject->setProperty("opacity", 0);
} else {
rootObject->setProperty("visible", true);
}
} else {
rootObject->setProperty("visible", true);
}
rootObject->setProperty("visible", true);
QTimer::singleShot(0, this, &Osd::updatePosition);
if (m_timeout > 0) {
m_osdTimer->start(m_timeout);
......
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