Improve ngrok

This commit is contained in:
Peter Steinberger 2025-06-16 08:11:34 +02:00
parent 0bc40ffae9
commit 1056145bc0

View file

@ -360,9 +360,19 @@ struct AdvancedSettingsView: View {
Text("Tunnel active") Text("Tunnel active")
.font(.caption) .font(.caption)
Spacer() Spacer()
Button("Copy URL") { Image(systemName: "doc.on.doc")
NSPasteboard.general.clearContents() .font(.caption)
NSPasteboard.general.setString(publicUrl, forType: .string) .foregroundColor(.secondary)
.help("Copy URL")
.onTapGesture {
NSPasteboard.general.clearContents()
NSPasteboard.general.setString(publicUrl, forType: .string)
}
Button("Open Browser") {
if let url = URL(string: publicUrl) {
NSWorkspace.shared.open(url)
}
} }
.buttonStyle(.bordered) .buttonStyle(.bordered)
.controlSize(.small) .controlSize(.small)