WIP: Refresh in thread
This is quite a large one, sorry
This PR is organized as follows:
- Trivial cleanups
- Introduce
GsReloadFlags
to all reloading functions, vfuncs, and signals - Add
GS_RELOAD_FLAG_FORCE_REFRESH
- (Flatpak plugin) Cache FlatpakRemotes in memory
- (Flatpak plugin) Compare cached remotes and new remotes, and pass
GS_RELOAD_FLAG_FORCE_REFRESH
if necessary
I tried to document the relevant details and decisions in the commit messages, please let me know if they aren't clear enough to address your doubts and I'll make sure to update them.
Fixes #1276 (closed)