mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
moved .toolbar to contentview to fix the 4x plus button
This commit is contained in:
@@ -57,6 +57,19 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
}
|
}
|
||||||
|
.toolbar {
|
||||||
|
ToolbarItem(placement: .confirmationAction) {
|
||||||
|
NavigationLink {
|
||||||
|
ConnectionView(
|
||||||
|
handler: SSHHandler(host: Host.blank, keyManager: keyManager),
|
||||||
|
hostsManager: hostsManager,
|
||||||
|
keyManager: keyManager
|
||||||
|
)
|
||||||
|
} label: {
|
||||||
|
Label("Add", systemImage: "plus")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,19 +53,6 @@ struct HostsView: View {
|
|||||||
}
|
}
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
.navigationTitle("ShhShell")
|
.navigationTitle("ShhShell")
|
||||||
.toolbar {
|
|
||||||
ToolbarItem(placement: .confirmationAction) {
|
|
||||||
NavigationLink {
|
|
||||||
ConnectionView(
|
|
||||||
handler: SSHHandler(host: Host.blank, keyManager: keyManager),
|
|
||||||
hostsManager: hostsManager,
|
|
||||||
keyManager: keyManager
|
|
||||||
)
|
|
||||||
} label: {
|
|
||||||
Label("Add", systemImage: "plus")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user