summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-26 07:09:32 -0700
committerFuwn <[email protected]>2025-06-26 07:09:32 -0700
commit2408b20c3003bbe6f4f1207b0b7a1aae2e1d0b41 (patch)
treed0a90fe6260e56dd1dec3fc06a953891d51bb4fa
parentfeat: Development commit (diff)
downloadsora-testing-2408b20c3003bbe6f4f1207b0b7a1aae2e1d0b41.tar.xz
sora-testing-2408b20c3003bbe6f4f1207b0b7a1aae2e1d0b41.zip
feat: Development commit
-rw-r--r--Sora/Views/ContentView.swift6
1 files changed, 4 insertions, 2 deletions
diff --git a/Sora/Views/ContentView.swift b/Sora/Views/ContentView.swift
index 4758828..a88fa1b 100644
--- a/Sora/Views/ContentView.swift
+++ b/Sora/Views/ContentView.swift
@@ -13,12 +13,14 @@ struct ContentView: View {
.sorted { $0.state.createdAt > $1.state.createdAt }
}
+ var history: [UUID: BooruSearchQuery] {
+ Dictionary(uniqueKeysWithValues: manager.searchHistory.map { ($0.id, $0) })
+ }
+
var body: some View {
#if os(macOS)
NavigationSplitView(columnVisibility: $columnVisibility) {
List(selection: $viewStateSelection) {
- let history = Dictionary(uniqueKeysWithValues: manager.searchHistory.map { ($0.id, $0) })
-
if viewStates.isEmpty {
Text("No Tags")
.tag(UUID.nilUUID())