diff --git a/ShhShell/Views/ContentView.swift b/ShhShell/Views/ContentView.swift index 3da16c7..c5846b9 100644 --- a/ShhShell/Views/ContentView.swift +++ b/ShhShell/Views/ContentView.swift @@ -57,6 +57,19 @@ struct ContentView: View { } .scrollContentBackground(.hidden) } + .toolbar { + ToolbarItem(placement: .confirmationAction) { + NavigationLink { + ConnectionView( + handler: SSHHandler(host: Host.blank, keyManager: keyManager), + hostsManager: hostsManager, + keyManager: keyManager + ) + } label: { + Label("Add", systemImage: "plus") + } + } + } } } } diff --git a/ShhShell/Views/Hosts/HostsView.swift b/ShhShell/Views/Hosts/HostsView.swift index 8dd035f..6c2c49a 100644 --- a/ShhShell/Views/Hosts/HostsView.swift +++ b/ShhShell/Views/Hosts/HostsView.swift @@ -53,19 +53,6 @@ struct HostsView: View { } .transition(.opacity) .navigationTitle("ShhShell") - .toolbar { - ToolbarItem(placement: .confirmationAction) { - NavigationLink { - ConnectionView( - handler: SSHHandler(host: Host.blank, keyManager: keyManager), - hostsManager: hostsManager, - keyManager: keyManager - ) - } label: { - Label("Add", systemImage: "plus") - } - } - } } }