Skip to content

Commit

Permalink
Minor Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
UndeadZeratul committed Dec 19, 2023
1 parent c26e978 commit 4393a5b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions zscript/accensus/merchant/menu/handlers/merchantMenuHandler.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ class MerchantMenuHandler : MerchZFHandler {
switch (cmd) {
case 'toggleCategoryCollapse':
if (hdm_debug) console.printf("Toggle Category Collapsed...");
let toggleBtn = MerchantCategoryToggleButton(btn);
if (toggleBtn) {
if (hdm_debug) console.printf("Toggle Button Exists");
let itemsFrame = toggleBtn.targetEl;
let toggleBtn = MerchantCategoryToggleButton(btn);
if (toggleBtn) {
if (hdm_debug) console.printf("Toggle Button Exists");
let itemsFrame = toggleBtn.targetEl;

if (itemsFrame) {
if (hdm_debug) console.printf("Target Element Exists");
itemsFrame.setHidden(on);

if (hdm_debug) console.printf("Target Element is now "..(itemsFrame.isHidden() ? "hidden" : "visible"));
if (itemsFrame) {
if (hdm_debug) console.printf("Target Element Exists");
itemsFrame.setHidden(on);
if (hdm_debug) console.printf("Target Element is now "..(itemsFrame.isHidden() ? "hidden" : "visible"));

menu.setScrollHeight();
menu.buildFocusableBtns();
}
}
}
break;
default:
if (hdm_debug) console.printf("Unknown Command: "..cmd);
break;
break;
default:
if (hdm_debug) console.printf("Unknown Command: "..cmd);
break;
}
}
}

0 comments on commit 4393a5b

Please sign in to comment.