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:
MathieuG-P
2023-06-13 20:47:33 +02:00
committed by GitHub
@@ -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);