Skip to content

Commit

Permalink
Update Wine.uninstall: return a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
ImperatorS79 committed Feb 12, 2019
1 parent 26ff20d commit cacdd44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Engines/Wine/Engine/Object/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Wine.prototype.run = function (executable, args, workingDirectory, captureOutput
/**
* uninstall application
* @param {string} name of the application which shall be uninstalled
* @returns {WINE}
* @returns {bool} true if an application has been uninstalled, false otherwise
*/
Wine.prototype.uninstall = function (application) {
var list = this.run("uninstaller", ["--list"], this.prefixDirectory(), true, true);
Expand All @@ -190,11 +190,11 @@ Wine.prototype.uninstall = function (application) {
if (uuid) {
this._implementation.getWizard().wait(tr("Please wait while {0} is uninstalled...", application));
this.run("uninstaller", ["--remove", uuid[1]], this.prefixDirectory(), false, true);
return true;
} else {
print(tr("Could not uninstall {0}!", application));
return false;
}

return this;
};

/**
Expand Down

0 comments on commit cacdd44

Please sign in to comment.