Skip to content

Commit

Permalink
Fixed runCmd compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQwertiest committed Feb 6, 2018
1 parent dc0911d commit 5a08794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions theme/Scripts/Control_ContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ _.mixin(qwr_utils, {
cm.append(edit);

var edit_fn = function (script_path) {
if (!_.runCmd("notepad++.exe " + script_path, undefined, false)) {
_.runCmd("notepad.exe " + script_path, undefined, false);
if (!_.runCmd("notepad++.exe " + script_path, undefined, true)) {
_.runCmd("notepad.exe " + script_path, undefined, true);
}
};

Expand Down
4 changes: 2 additions & 2 deletions theme/Scripts/js_marc2003/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,9 @@ _.mixin({
return false;
}
},
runCmd: function (command, wait, hide) {
runCmd: function (command, wait, show) {
try {
WshShell.Run(command, hide ? 0 : 1, !_.isNil(wait) ? wait : false);
WshShell.Run(command, show ? 1 : 0, !_.isNil(wait) ? wait : false);
return true;
} catch (e) {
return false;
Expand Down

0 comments on commit 5a08794

Please sign in to comment.