Skip to content

Commit

Permalink
22.2.20 Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Feb 20, 2022
1 parent 0fd3506 commit 55dd3c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Debug/script/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -1683,17 +1683,19 @@ InitDialog = async function () {
FocusElement(document.F.path);
}, 99);

WebBrowser.OnClose = async function (WB) {
ui_.ArgPath = await dialogArguments.path;

WebBrowser.OnClose = function (WB) {
if (g_nResult == 1) {
let path = document.F.path.value;
if (path) {
if (!/^[A-Z]:\\|^\\/i.test(path)) {
path = BuildPath(await dialogArguments.path, path.replace(/^\s+/, ""));
path = BuildPath(ui_.ArgPath, path.replace(/^\s+/, ""));
}
if (GetElement("folder").checked) {
await CreateFolder(path);
MainWindow.CreateFolder(path);
} else if (GetElement("file").checked) {
await CreateFile(path);
MainWindow.CreateFile(path);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Debug/script/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ g_.IconChg = [

AboutTE = function (n) {
if (n == 0) {
return te.Version < 20220218 ? te.Version : 20220218;
return te.Version < 20220218 ? te.Version : 20220220;
}
if (n == 1) {
const v = AboutTE(0);
Expand Down

0 comments on commit 55dd3c3

Please sign in to comment.