Add GsAppQuery:is-source and use it to replace gs_plugin_add_sources()
These commits are from @mcrha, split out from !1875 (closed), rebased, reviewed and slightly tweaked by me to fix review issues. The things I’ve changed:
- Reworked the
disable_filtering
changes to make them only take effect whenGsAppQuery:is-source == GS_APP_QUERY_TRISTATE_TRUE
- Dropped use of
GS_PLUGIN_REFINE_FLAGS_REQUIRE_SETUP_ACTION
as all the plugins which implementis-source
set the necessary data for enabling/disabling a repo on the repos they return anyway - Fully drop
GS_PLUGIN_ACTION_GET_SOURCES
as it wasn’t meaningfully used anywhere any more
Helps: #1472