diff options
| author | Fuwn <[email protected]> | 2025-06-15 01:22:40 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-15 01:22:40 -0700 |
| commit | 7c4433e11c55a05b25c28e5864e1ad7da238977f (patch) | |
| tree | e58743f71d8e96fe03184f0d91a80fce6d536557 /Sora/Views | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-7c4433e11c55a05b25c28e5864e1ad7da238977f.tar.xz sora-testing-7c4433e11c55a05b25c28e5864e1ad7da238977f.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views')
| -rw-r--r-- | Sora/Views/Generic/GenericListView.swift | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift index 20fcea8..5530567 100644 --- a/Sora/Views/Generic/GenericListView.swift +++ b/Sora/Views/Generic/GenericListView.swift @@ -137,16 +137,18 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View { // swi } #endif - ToolbarItem { - Button(action: { - isShowingRemoveAllConfirmation = true - }) { - Label("Remove All", systemImage: "trash") + #if os(macOS) + ToolbarItem { + Button(action: { + isShowingRemoveAllConfirmation = true + }) { + Label("Remove All", systemImage: "trash") + } } - } + #endif #if os(iOS) - ToolbarItemGroup(placement: .bottomBar) { + ToolbarItemGroup(placement: .secondaryAction) { if !settings.folders.isEmpty && !allowBookmarking { Button { isSortPickerPresented.toggle() @@ -190,6 +192,12 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View { // swi } } } + + Button(action: { + isShowingRemoveAllConfirmation = true + }) { + Label("Remove All", systemImage: "trash") + } } } #endif |