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)
|
.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
|
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
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Text("No Session")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user