mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
ok actually fix the fallback now
This commit is contained in:
@@ -147,19 +147,22 @@ struct ShellTabView: View {
|
||||
.id(selectedID)
|
||||
.transition(.opacity)
|
||||
} else {
|
||||
if let handler {
|
||||
ShellView(
|
||||
Text("No Session")
|
||||
.onAppear {
|
||||
if selectedID == nil {
|
||||
guard let handler,
|
||||
let handlerID = handler.sessionID else { return }
|
||||
selectedID = handlerID
|
||||
container.sessions[handlerID] = TerminalContainer(
|
||||
handler: handler,
|
||||
terminalView: SSHTerminalDelegate(
|
||||
frame: CGRect(origin: CGPoint(x: 0, y: 0), size: .zero),
|
||||
handler: handler,
|
||||
hostsManager: hostsManager
|
||||
)
|
||||
.onAppear {
|
||||
if selectedID == nil {
|
||||
selectedID = handler.sessionID
|
||||
)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Text("No Session")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user