Refactor context menu

This commit is contained in:
Arkadiusz Fal
2022-12-19 00:09:54 +01:00
parent 441f3c9e80
commit 8ab42322fc
5 changed files with 39 additions and 36 deletions

View File

@@ -30,6 +30,10 @@ private struct InNavigationViewKey: EnvironmentKey {
static let defaultValue = true
}
private struct InQueueListingKey: EnvironmentKey {
static let defaultValue = false
}
enum ListingStyle: String, CaseIterable, Defaults.Serializable {
case cells
case list
@@ -103,4 +107,10 @@ extension EnvironmentValues {
get { self[InNavigationViewKey.self] }
set { self[InNavigationViewKey.self] = newValue }
}
var inQueueListing: Bool {
get { self[InQueueListingKey.self] }
set { self[InQueueListingKey.self] = newValue }
}
}