Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
InstallerScript
  • Loading branch information
plata authored Mar 27, 2018
commit 1e916f168437904d171d1eb81fe932c0a52c0172
12 changes: 6 additions & 6 deletions Engines/Wine/QuickScript/InstallerScript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ InstallerScript.prototype.go = function() {

var distributions = wine.availableDistributions();
var shownDistributions = [];
for (var i in distributions) {
if (distributions[i] == "upstream") {
for (var distributionIdx in distributions) {
if (distributions[distributionIdx] == "upstream") {
shownDistributions.push("upstream (recommended)");
}
else {
shownDistributions.push(distributions[i]);
shownDistributions.push(distributions[distributionIdx]);
}
}
var selectedDistribution = setupWizard.menu(tr("Please select the wine distribution."), shownDistributions, "upstream (recommended)");
Expand All @@ -55,12 +55,12 @@ InstallerScript.prototype.go = function() {

var versions = wine.availableVersions();
var shownVersions = [];
for (var i in versions) {
if (versions[i] == LATEST_STABLE_VERSION) {
for (var versionIdx in versions) {
if (versions[versionIdx] == LATEST_STABLE_VERSION) {
shownVersions.push(versions[i] + " (recommended)");
}
else {
shownVersions.push(versions[i]);
shownVersions.push(versions[versionIdx]);
}
}
var selectedVersion = setupWizard.menu(tr("Please select the wine version."), shownVersions, LATEST_STABLE_VERSION + " (recommended)");
Expand Down