mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Merge pull request #248 from Zagrios/hotfix/version-already-exist-when-cloning-steam-version
[hotfix] always set oculus et steam to false when clonning a version
This commit is contained in:
@@ -211,7 +211,7 @@ export class BSLocalVersionService{
|
||||
public async cloneVersion(version: BSVersion, name: string, color: string): Promise<BSVersion>{
|
||||
const originPath = await this.getVersionPath(version);
|
||||
const cloneVersion: BSVersion = version.BSVersion === name
|
||||
? {...version, name: undefined, color}
|
||||
? {...version, name: undefined, color, steam: false, oculus: false}
|
||||
: {...version, name: this.removeSpecialChar(name), color, steam: false, oculus: false};
|
||||
const newPath = await this.getVersionPath(cloneVersion);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user