Skip to content

Commit

Permalink
Merge pull request #248 from Zagrios/hotfix/version-already-exist-whe…
Browse files Browse the repository at this point in the history
…n-cloning-steam-version

[hotfix] always set oculus et steam to false when clonning a version
  • Loading branch information
Zagrios authored Jun 13, 2023
2 parents fd5ce10 + f55b300 commit 8a95491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/services/bs-local-version.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8a95491

Please sign in to comment.