Skip to content

Commit

Permalink
fixed wine architecture
Browse files Browse the repository at this point in the history
Use default value only if nothing else set.

fixes: PlayOnLinux/POL-POM-5/#463
  • Loading branch information
plata committed Jan 9, 2017
1 parent c2f4a30 commit 58d4e26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Functions/Engines/Wine/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ Wine.prototype.prefix = function (prefix) {

this._prefixConfiguration.writeValue("wineDistribution", this._distribution);

if (!this._architecture) {
var defaultArchitecture = Bean("architectureFetcher").fetchCurrentArchitecture().getNameForWinePackages();
this._architecture = this._prefixConfiguration.readValue("wineArchitecture", defaultArchitecture);
}
var defaultArchitecture = Bean("architectureFetcher").fetchCurrentArchitecture().getNameForWinePackages();
this._architecture = this._prefixConfiguration.readValue("wineArchitecture", defaultArchitecture);

this._prefixConfiguration.writeValue("wineArchitecture", this._architecture);

Expand Down

0 comments on commit 58d4e26

Please sign in to comment.