moved .toolbar to contentview to fix the 4x plus button

This commit is contained in:
neon443
2025-07-06 19:44:25 +01:00
parent bc24edd13c
commit 74b81877a9
2 changed files with 13 additions and 13 deletions

View File

@@ -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")
}
}
}
}
}
}

View File

@@ -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")
}
}
}
}
}