mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 18:07:58 +00:00
ref(connectable tab) reconnect context menu & hotkey n°2
This commit is contained in:
@@ -59,6 +59,8 @@ export class SerialTabComponent extends ConnectableTerminalTabComponent<SerialPr
|
||||
}
|
||||
|
||||
async initializeSession () {
|
||||
super.initializeSession()
|
||||
|
||||
const session = new SerialSession(this.injector, this.profile)
|
||||
this.setSession(session)
|
||||
|
||||
@@ -104,12 +106,6 @@ export class SerialTabComponent extends ConnectableTerminalTabComponent<SerialPr
|
||||
}
|
||||
}
|
||||
|
||||
async reconnect (): Promise<void> {
|
||||
this.session?.destroy()
|
||||
await this.initializeSession()
|
||||
this.session?.releaseInitialDataBuffer()
|
||||
}
|
||||
|
||||
async changeBaudRate () {
|
||||
const rate = await this.selector.show(
|
||||
this.translate.instant(_('Baud rate')),
|
||||
|
Reference in New Issue
Block a user