Backport !1604 “gs-update-monitor: Change the last check timestamp only if updates could be received” to gnome-44
requested to merge pwithnall/gnome-software:backport-1604-check-updates-timestamp-gnome-44 into gnome-44
The "check-timestamp" should be updated only if both "refresh-cache" and "get-updates" succeeded, instead of immediately after "refresh-cache" call succeeded, thus when the later fails, it's checked an hour later for the updates again. Otherwise, for example when the first check after login always fails, like due to the server is connected later after login, the user never sees new updates.
Closes #1316 (closed)
Trivial backport of !1604 (merged) to gnome-44
.