Commit 7765acd5 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

notifier: improve behavior on the system tray

parent ace22790
......@@ -64,17 +64,13 @@ Item
onNeedsRebootChanged: plasmoid.setAction("reboot", i18n("Restart..."), "system-reboot");
}
function action_reboot() {
DiscoverNotifier.reboot()
}
Instantiator {
Connections {
target: DiscoverNotifier
onNewUpgradeAction: {
upgrades.append(action)
}
target: DiscoverNotifier
onNewUpgradeAction: {
upgrades.append(action)
}
}
model: ObjectModel {
id: upgrades
......@@ -96,8 +92,13 @@ Item
}
function action_update() {
DiscoverNotifier.showDiscoverUpdates();
root.activated()
}
function action_refresh() {
DiscoverNotifier.recheckSystemUpdateNeeded();
}
function action_reboot() {
DiscoverNotifier.reboot()
}
}
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