mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
remove fallback, remove border
This commit is contained in:
@@ -135,7 +135,6 @@ struct ShellTabView: View {
|
|||||||
handler: session.handler,
|
handler: session.handler,
|
||||||
hostsManager: hostsManager
|
hostsManager: hostsManager
|
||||||
)
|
)
|
||||||
.border(.blue)
|
|
||||||
.onDisappear {
|
.onDisappear {
|
||||||
if !checkShell(session.handler.state) {
|
if !checkShell(session.handler.state) {
|
||||||
if let lastSession = container.sessionIDs.last {
|
if let lastSession = container.sessionIDs.last {
|
||||||
@@ -148,17 +147,12 @@ struct ShellTabView: View {
|
|||||||
.id(selectedID)
|
.id(selectedID)
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
} else {
|
} else {
|
||||||
if let handler {
|
Text("No Session")
|
||||||
ShellView(handler: handler, hostsManager: hostsManager)
|
.onAppear {
|
||||||
.onAppear {
|
if selectedID == nil {
|
||||||
if selectedID == nil {
|
selectedID = handler.sessionID
|
||||||
selectedID = handler.sessionID
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.border(.red)
|
}
|
||||||
} else {
|
|
||||||
Text("No SSH Handler")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user