mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 22:05:59 +00:00
feat(library): add a Hidden tab synced with Steam's hidden games (#2803)
* feat(library): add a Hidden tab synced with Steam's hidden games * fix(library): mark the hidden collection as modified so Steam uploads it * fix(library): make the Steam hidden write atomic and refresh the hidden set on resume * feat(library): show an error when hiding a game can't sync with Steam * fix(library): keep the pending Steam upload list safe when it can't be read * fix(library): report a failed Steam sync when the upload marker can't be saved * fix(library): refresh the Steam hidden set from disk after a failed sync * fix(library): keep the cached hidden set when Steam's file can't be read * fix(library): handle a malformed hidden entry and a changed Steam root * fix(library): refuse to overwrite a malformed hidden entry * fix(library): validate the hidden collection, keep Steam saves separate from upload status and cover cloud and uninstalled games * fix(library): accept numeric-string ids, keep uninstalled games in the Hidden tab and hide games from the Steam home list * fix(library): keep hidden Steam games out of the home capsule wall * fix(library): refresh home art when the hidden set changes and track the Steam account * fix(library): clear the cached hidden set when the Steam account changes * fix(library): ignore a previous account's art while the home scan runs * fix(library): conceal home art for hidden added games that carry a Steam app id
This commit is contained in:
1 parent
d89c2c1c2d
commit
f1be935761
43 files changed
+459
-32
No files matched your search
@@ -255,6 +255,18 @@ object SessionPrefs {
|
||||
prefs(context).edit().putBoolean("libraryShowSize", show).apply()
|
||||
}
|
||||
|
||||
fun libraryShowHidden(context: Context): Boolean = prefs(context).getBoolean("libraryShowHidden", false)
|
||||
|
||||
fun setLibraryShowHidden(context: Context, show: Boolean) {
|
||||
prefs(context).edit().putBoolean("libraryShowHidden", show).apply()
|
||||
}
|
||||
|
||||
fun libraryHidden(context: Context): Set<String> = prefs(context).getStringSet("libraryHidden", null)?.toSet().orEmpty()
|
||||
|
||||
fun setLibraryHidden(context: Context, keys: Set<String>) {
|
||||
prefs(context).edit().putStringSet("libraryHidden", keys.toSet()).apply()
|
||||
}
|
||||
|
||||
fun railLabels(context: Context): Boolean = prefs(context).getBoolean("railLabels", false)
|
||||
|
||||
fun setRailLabels(context: Context, show: Boolean) {
|
||||
|
||||
Reference in new issue
Block a user