Skip to content

Commit 7066c8d

Browse files
committed
ui: group items in file view toolbar
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 23ba87a commit 7066c8d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Sushitrain/FileView.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,20 +313,18 @@ struct FileView: View {
313313
}
314314

315315
#if os(macOS)
316-
// Menu for advanced actions
317-
ToolbarItem {
316+
ToolbarItemGroup(placement: .primaryAction) {
317+
// Menu for advanced actions
318318
Menu {
319319
Button("Encryption details...", systemImage: "lock.document.fill") { showEncryptionSheet = true }
320320
.disabled(!(file.folder?.hasEncryptedPeers ?? false))
321-
321+
322322
Button("Explore archive contents...", systemImage: "doc.zipper") { showArchive = true }
323323
} label: {
324324
Label("Advanced", systemImage: "ellipsis.circle")
325325
}
326-
}
327-
328-
// Open in Finder button
329-
ToolbarItem(id: "open-in-finder", placement: .primaryAction) {
326+
327+
// Open in Finder button
330328
Button(
331329
openInFilesAppLabel, systemImage: "arrow.up.forward.app",
332330
action: {

0 commit comments

Comments
 (0)