remove fallback, remove border

This commit is contained in:
neon443
2025-07-04 15:43:11 +01:00
parent 83eb9b8b62
commit 1f04f6527f

View File

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