Commit 56cc74ec authored by Konrad Materka's avatar Konrad Materka

[applets/devicenotifier] Fix regression with expand

This fixes regresion, when plugging in a removable media or phone the removable
media widget toggles on and off if two or more of them are present.

BUG: 428379
parent cca3f6e8
......@@ -167,13 +167,13 @@ Item {
}
function processLastDevice(expand) {
if (last) {
if (isViableDevice(last) && hpSource.data[last].added) {
if (last && isViableDevice(last)) {
if (expand && hpSource.data[last] && hpSource.data[last].added) {
devicenotifier.popupIcon = "preferences-desktop-notification";
expandTimer.restart();
popupIconTimer.restart()
last = "";
popupIconTimer.restart();
}
last = "";
}
}
}
......
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