Skip to content

Commit

Permalink
SystemUpdate: Share last refresh time via DBus (#175)
Browse files Browse the repository at this point in the history
* SystemUpdate: Get last refresh time via DBus

* Review variable declaration and substitution order

* Create private setter

* Address changes request
  • Loading branch information
ryonakano authored Dec 27, 2024
1 parent 3dd6bcb commit 6a387c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Backends/SystemUpdate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,8 @@ public class SettingsDaemon.Backends.SystemUpdate : Object {
public async UpdateDetails get_update_details () throws DBusError, IOError {
return update_details;
}

public async int64 get_last_refresh_time () throws DBusError, IOError {
return settings.get_int64 ("last-refresh-time");
}
}

0 comments on commit 6a387c2

Please sign in to comment.