From a6e59eec2c146118fc59870a9091667d43f5170c Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Sun, 17 Aug 2025 18:26:25 +0100 Subject: [PATCH] add dup button to long press --- ShhShell/Views/Hosts/HostsView.swift | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ShhShell/Views/Hosts/HostsView.swift b/ShhShell/Views/Hosts/HostsView.swift index 286df70..de7a183 100644 --- a/ShhShell/Views/Hosts/HostsView.swift +++ b/ShhShell/Views/Hosts/HostsView.swift @@ -35,9 +35,16 @@ struct HostsView: View { .animation(.default, value: host) .contextMenu { Button() { + hostsManager.duplicateHost(host) + } label: { + Label("Duplicate", systemImage: "square.filled.on.square") + } + Button(role: .destructive) { hostsManager.removeHost(host) - } label: { Label("Delete", systemImage: "trash") } - .tint(.red) + } label: { + Label("Delete", systemImage: "trash") + } + .tint(.red) } preview: { HostPreview(hostsManager: hostsManager, keyManager: keyManager, host: host) }