Parcourir la source

fixed #9323 - "Save as profile" profile editability

Eugene il y a 1 an
Parent
commit
21aedb6045
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      tabby-terminal/src/tabContextMenu.ts

+ 1 - 2
tabby-terminal/src/tabContextMenu.ts

@@ -1,4 +1,3 @@
-import deepClone from 'clone-deep'
 import { Injectable, Optional, Inject } from '@angular/core'
 import { Injectable, Optional, Inject } from '@angular/core'
 import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
 import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
 import { BaseTabComponent, TabContextMenuItemProvider, NotificationsService, MenuItemOptions, TranslateService, SplitTabComponent, PromptModalComponent, ConfigService, PartialProfile, Profile } from 'tabby-core'
 import { BaseTabComponent, TabContextMenuItemProvider, NotificationsService, MenuItemOptions, TranslateService, SplitTabComponent, PromptModalComponent, ConfigService, PartialProfile, Profile } from 'tabby-core'
@@ -181,7 +180,7 @@ export class SaveAsProfileContextMenu extends TabContextMenuItemProvider {
                             return
                             return
                         }
                         }
 
 
-                        const options = deepClone(tab.profile.options)
+                        const options = JSON.parse(JSON.stringify(tab.profile.options))
 
 
                         const cwd = await tab.session?.getWorkingDirectory() ?? tab.profile.options.cwd
                         const cwd = await tab.session?.getWorkingDirectory() ?? tab.profile.options.cwd
                         if (cwd) {
                         if (cwd) {