Skip to content

Commit

Permalink
SystemUpdate: withdraw old notifications on startup (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jan 25, 2024
1 parent a77ff03 commit f2e743b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Backends/SystemUpdate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public class SettingsDaemon.Backends.SystemUpdate : Object {

if (last_offline_results.get_exit_code () != SUCCESS && last_offline_results.get_error_code () != null) {
send_error (last_offline_results.get_error_code ().details);
} else {
GLib.Application.get_default ().withdraw_notification (NOTIFICATION_ID);
}
} catch (Error e) {
warning ("Couldn't determine last offline results: %s", e.message);
Expand Down

0 comments on commit f2e743b

Please sign in to comment.