mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-04 16:57:00 +01:00
feat(android,ios): offer posters and synopses on the library, as the desktop does
The offer appears when metadata is off and there is a library to put posters on. It says what turning metadata on sends, links to Settings and never turns anything on itself. "Not now" is stored on the device. The existing library screenshots now run with metadata on, as their shelf implies, and a new screenshot covers the offer.
This commit is contained in:
1 parent
a79e41aa8a
commit
6ddbcea429
8 files changed
+113
-4
No files matched your search
@@ -203,7 +203,8 @@ struct RootView: View {
|
||||
onAddShare: {
|
||||
incomingLink = ""
|
||||
destination = .shares
|
||||
}
|
||||
},
|
||||
onOpenSettings: { select(.settings) }
|
||||
)
|
||||
if width >= twoPaneWidth {
|
||||
HStack(spacing: 0) {
|
||||
|
||||
@@ -51,6 +51,12 @@ struct SettingsStore {
|
||||
nonmutating set { defaults.set(String(describing: newValue), forKey: Key.librarySort) }
|
||||
}
|
||||
|
||||
/// The library's offer of posters and synopses was turned down.
|
||||
var metadataOfferDismissed: Bool {
|
||||
get { bool(Key.metadataOfferDismissed, default: false) }
|
||||
nonmutating set { defaults.set(newValue, forKey: Key.metadataOfferDismissed) }
|
||||
}
|
||||
|
||||
/// Whether the library folds each franchise into one tile.
|
||||
var libraryGrouped: Bool {
|
||||
get { bool(Key.libraryGrouped, default: true) }
|
||||
@@ -70,5 +76,6 @@ struct SettingsStore {
|
||||
static let cacheBudgetGib = "cache_budget_gib"
|
||||
static let librarySort = "library_sort"
|
||||
static let libraryGrouped = "library_grouped"
|
||||
static let metadataOfferDismissed = "metadata_offer_dismissed"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user