Skip to content

Commit

Permalink
24.2.8 Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Feb 8, 2024
1 parent 25a07c6 commit 6bd5f9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Debug/script/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ g_.IconChg = [

AboutTE = function (n) {
if (n == 0) {
return te.Version < 20240206 ? te.Version : 20240207;
return te.Version < 20240206 ? te.Version : 20240208;
}
if (n == 1) {
const v = AboutTE(0);
Expand Down
13 changes: 7 additions & 6 deletions Debug/script/sync1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3297,8 +3297,9 @@ AddEvent("BeginNavigate", function (Ctrl) {
});

AddEvent("UseExplorer", function (pid) {
if (pid && pid.Path && !/^ftp:|^https?:/i.test(pid.Path) && !pid.Unavailable && !api.GetAttributesOf(pid.Alt || pid, SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR | SFGAO_STORAGEANCESTOR | SFGAO_NONENUMERATED | SFGAO_DROPTARGET) && !api.ILIsParent(1, pid, false) && !IsSearchPath(pid)) {
return true;
if (pid && pid.Path && !/^ftp:|^https?:/i.test(pid.Path) && !pid.Unavailable && !api.GetAttributesOf(pid.Alt || pid, SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR | SFGAO_STORAGEANCESTOR | SFGAO_NONENUMERATED | SFGAO_DROPTARGET) && !api.ILIsParent(1, pid, false) && !IsSearchPath(pid) && api.GetDisplayNameOf(pid, SHGDN_FORPARSING) != "::{F874310E-B6B7-47DC-BC84-B9E6B38F5903}") {
wsh.Popup(api.GetDisplayNameOf(pid, SHGDN_FORPARSING));
return false;
}
});

Expand Down Expand Up @@ -3720,16 +3721,16 @@ InitCode = function () {
g_.IconExt = json.info.ext || ".png";
}
const cloud = ["HKCU\\Environment\\OneDrive", "HKCR\\CLSID\\{E31EA727-12ED-4702-820C-4B6445F28E1A}\\Instance\\InitPropertyBag\\TargetFolderPath", "HKCU\\SOFTWARE\\Box\\Box\\preferences\\sync_directory_path"];
const r = [];
const r = [BuildPath(wsh.ExpandEnvironmentStrings("%USERPROFILE%") || "-", "*")];
for (let i = cloud.length; i--;) {
try {
const s = wsh.RegRead(cloud[i]);
if (s) {
r.unshift(PathQuoteSpaces(s) + "*");
if (s && !api.PathMatchSpec(s, r[0])) {
r.unshift(PathUnquoteSpaces(s) + "*");
}
} catch (e) { }
}
g_.cloud = r.length ? r.join(";") : '-';
g_.cloud = r.join(";");
}

InitMenus = function () {
Expand Down

0 comments on commit 6bd5f9a

Please sign in to comment.