@@ -70,7 +70,6 @@ func (g *Gui) ShowConnect() {
70
70
} else {
71
71
passphraseCheck .SetChecked (false )
72
72
}
73
- log .Println (s )
74
73
}
75
74
keyPathEntry .OnChanged = func (s string ) {
76
75
b , err := os .ReadFile (s )
@@ -86,7 +85,6 @@ func (g *Gui) ShowConnect() {
86
85
} else {
87
86
passphraseCheck .SetChecked (false )
88
87
}
89
- log .Println (s )
90
88
}
91
89
92
90
fileDialog := dialog .NewFileOpen (func (reader fyne.URIReadCloser , err error ) {
@@ -216,10 +214,6 @@ func (g *Gui) ShowConnect() {
216
214
errorLabel .SetText (fmt .Sprintf ("ERROR: %s" , err .Error ()))
217
215
g .showErrorDialog (err , binding .NewDataListener (func () {}))
218
216
} else {
219
- // err = TryToRunSSHSessionForTerminal(g.sshClient)
220
- // if err != nil {
221
- // } else {
222
-
223
217
err := TryToRunSSHSessionForTerminal (g )
224
218
if err != nil {
225
219
g .showErrorDialog (fmt .Errorf ("unable to create terminal instance, disabling terminal: %v" , err .Error ()), binding .NewDataListener (func () {}))
@@ -267,17 +261,6 @@ func (g *Gui) ShowConnect() {
267
261
nil , nil , nil ,
268
262
container .NewBorder (nil , nil , nil , nil , container .NewVScroll (errorLabel )),
269
263
)
270
- // logging := container.NewVBox(
271
- // widget.NewLabel("IP and Port"),
272
- // addressBoxEntry,
273
- // widget.NewLabel("User"),
274
- // userEntry,
275
- // keyEntryBox,
276
- // privKeyCheck,
277
- // connectButton,
278
- // container.NewBorder(nil, nil, nil, nil, container.NewVScroll(errorLabel)),
279
- // testButton,
280
- // )
281
264
return logging
282
265
}
283
266
@@ -296,9 +279,6 @@ func (g *Gui) sshAliveTracker() {
296
279
if err != nil {
297
280
log .Printf ("SSH was interrupted: %v" , err .Error ())
298
281
g .ConnectionStatusBinding .Set (false )
299
- // g.Terminal.Term.Exit()
300
- // g.Terminal.SSHSessionForTerminal.Close()
301
- // g.Terminal.SSHIn.Close()
302
282
303
283
g .showErrorDialog (fmt .Errorf ("SSH connection was disconnected, reason: %v" , err .Error ()), errorDoneBinding )
304
284
}
0 commit comments