From 4a1d8cdd0da65a76b778c1f525bf5e4054d39ec4 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 1 Oct 2021 18:56:28 +0200 Subject: [PATCH] fixed admin tabs on windows - fixes #4669, fixes #4601, fixed #4594 --- tabby-local/src/components/terminalTab.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tabby-local/src/components/terminalTab.component.ts b/tabby-local/src/components/terminalTab.component.ts index 4f566c8f..1348979a 100644 --- a/tabby-local/src/components/terminalTab.component.ts +++ b/tabby-local/src/components/terminalTab.component.ts @@ -58,7 +58,10 @@ export class TerminalTabComponent extends BaseTerminalTabComponent { initializeSession (columns: number, rows: number): void { if (this.profile.options.runAsAdministrator && this.uac.isAvailable) { - this.profile.options = this.uac.patchSessionOptionsForUAC(this.profile.options) + this.profile = { + ...this.profile, + options: this.uac.patchSessionOptionsForUAC(this.profile.options), + } } this.session!.start({