From 2408b20c3003bbe6f4f1207b0b7a1aae2e1d0b41 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 26 Jun 2025 07:09:32 -0700 Subject: feat: Development commit --- Sora/Views/ContentView.swift | 6 ++++-- 1 file 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()) -- cgit v1.2.3