diff --git a/Debug/script/sync.js b/Debug/script/sync.js index 831e1df..2ce71c6 100644 --- a/Debug/script/sync.js +++ b/Debug/script/sync.js @@ -67,7 +67,7 @@ g_.Notify = {}; AboutTE = function (n) { if (n == 0) { - return te.Version < 20240616 ? te.Version : 20241004; + return te.Version < 20240616 ? te.Version : 20241006; } if (n == 1) { const v = AboutTE(0); @@ -3296,15 +3296,10 @@ OpenInExplorer = function (pid1) { const pid = pid1.FolderItem || pid1; if (pid) { const path = api.ILIsEmpty(pid) ? "shell:Desktop" : api.GetDisplayNameOf(pid, SHGDN_FORPARSING | SHGDN_FORPARSINGEX); - if (/^[A-Z]:\\|^\\\\\w|^::{/i.test(path)) { + if (/^[A-Z]:\\|^\\\\\w|^::{.*}$/i.test(path)) { api.CreateProcess(GetWindowsPath("explorer.exe") + " " + PathQuoteSpaces(path)); return; } - const res = IsSearchPath(path); - if (res) { - api.CreateObject("new:{C08AFD90-F2A1-11D1-8455-00A0C91F3880}").Navigate2(path); - return; - } sha.Explore(pid); } } diff --git a/Debug/script/sync1.js b/Debug/script/sync1.js index a5bf755..fbf55b1 100644 --- a/Debug/script/sync1.js +++ b/Debug/script/sync1.js @@ -3330,7 +3330,7 @@ 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) && api.GetDisplayNameOf(pid, SHGDN_FORPARSING) != "::{F874310E-B6B7-47DC-BC84-B9E6B38F5903}") { + if (pid && pid.Path && !/^ftp:|^https?:/i.test(pid.Path) && !pid.Unavailable && !api.GetAttributesOf(pid.Alt || pid, SFGAO_FILESYSTEM | SFGAO_STORAGE) && !api.ILIsParent(1, pid, false) && !IsSearchPath(pid) && api.GetDisplayNameOf(pid, SHGDN_FORPARSING) != "::{F874310E-B6B7-47DC-BC84-B9E6B38F5903}") { return true; } });