Skip to content

Commit

Permalink
ref(settings/ssh): migrate and remove deprecated clearServiceMessages…
Browse files Browse the repository at this point in the history
…OnConnect ssh option
  • Loading branch information
Clem-Fern committed Aug 14, 2023
1 parent ef6b8a4 commit 5eeaef9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
7 changes: 7 additions & 0 deletions tabby-core/src/services/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ export class ConfigService {
}
config.version = 4
}
if (config.version < 6) {
if (config.ssh.clearServiceMessagesOnConnect === false) {
config.profileDefaults.ssh.clearServiceMessagesOnConnect = false
delete config.ssh?.clearServiceMessagesOnConnect
}
config.version = 6
}
}

private async maybeDecryptConfig (store) {
Expand Down
8 changes: 0 additions & 8 deletions tabby-ssh/src/components/sshSettingsTab.component.pug
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,4 @@ h3 SSH
(ngModelChange)='config.save()'
)

.form-line
.header
.title(translate) Clear terminal after connection
toggle(
[(ngModel)]='config.store.ssh.clearServiceMessagesOnConnect',
(ngModelChange)='config.save()',
)

.alert.alert-info(translate) SSH connection management is now done through the "Profiles & connections" tab
4 changes: 0 additions & 4 deletions tabby-ssh/src/components/sshTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>

await session.start()

if (this.config.store.ssh.clearServiceMessagesOnConnect) {
this.frontend?.clear()
}

this.session?.resize(this.size.columns, this.size.rows)
}

Expand Down
1 change: 0 additions & 1 deletion tabby-ssh/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export class SSHConfigProvider extends ConfigProvider {
x11Display: null,
knownHosts: [],
verifyHostKeys: true,
clearServiceMessagesOnConnect: true,
},
hotkeys: {
'restart-ssh-session': [],
Expand Down

0 comments on commit 5eeaef9

Please sign in to comment.