Skip to content

Commit

Permalink
24.10.10 Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Oct 10, 2024
1 parent c8f892e commit c3e0afb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Debug/script/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ g_.Notify = {};

AboutTE = function (n) {
if (n == 0) {
return te.Version < 20240616 ? te.Version : 20241009;
return te.Version < 20240616 ? te.Version : 20241010;
}
if (n == 1) {
const v = AboutTE(0);
Expand Down Expand Up @@ -2573,7 +2573,7 @@ ExecMenu4 = function (Ctrl, Name, pt, hMenu, arContextMenu, nVerb, FV) {
}
}
const Items = ContextMenu.Items();
if (ContextMenu.InvokeCommand(0, te.hwnd, nVerb - ContextMenu.idCmdFirst, null, Items ? (Items.Item(-1) || {}).Path : null, SW_SHOWNORMAL, 0, 0) == S_OK) {
if (ContextMenu.InvokeCommand(0, te.hwnd, nVerb - ContextMenu.idCmdFirst, null, (Items && "object" === typeof Items) ? (Items.Item(-1) || {}).Path : null, SW_SHOWNORMAL, 0, 0) == S_OK) {
api.DestroyMenu(hMenu);
return S_OK;
}
Expand Down Expand Up @@ -3222,7 +3222,7 @@ PopupContextMenu = function (Item, FV, pt) {
}
const nVerb = api.TrackPopupMenuEx(hMenu, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, te.hwnd, null, ContextMenu);
if (nVerb) {
ContextMenu.InvokeCommand(0, te.hwnd, nVerb - 1, null, Item ? (Item.Item(-1) || {}).Path : null, SW_SHOWNORMAL, 0, 0);
ContextMenu.InvokeCommand(0, te.hwnd, nVerb - 1, null, "object" === typeof Item ? (Item.Item(-1) || {}).Path : null, SW_SHOWNORMAL, 0, 0);
}
}
api.DestroyMenu(hMenu);
Expand Down

0 comments on commit c3e0afb

Please sign in to comment.