Skip to content

Quick Cold-Boot Fix#75

Merged
Martinski4GitHub merged 1 commit intodevelopfrom
Quick-Fix
Mar 21, 2026
Merged

Quick Cold-Boot Fix#75
Martinski4GitHub merged 1 commit intodevelopfrom
Quick-Fix

Conversation

@ExtremeFiretop
Copy link
Member

Right now we do this in this order:

  1. Extra_WebUI_Modifications apply
  2. create/load "$TEMP_MENU_TREE"
  3. CreateMenuAddOnsSection
  4. mount menuTree.js

That means on a fresh boot, Extra_WebUI_Modifications apply can run before menu_Addons exists in "$TEMP_MENU_TREE",

So .menu_Addons never gets added to /tmp/index_style.css.

Later in the same startup, CreateMenuAddOnsSection adds the Addons menu, but
the CSS decision was already made.

Quick fix is moving: Extra_WebUI_Modifications apply to after "$TEMP_MENU_TREE" has been created and after
CreateMenuAddOnsSection / Sitemap injection has finalized the menu state.

Moving: Extra_WebUI_Modifications apply

to after "$TEMP_MENU_TREE" has been created and after
_CreateMenuAddOnsSection_ / Sitemap injection has finalized the menu state.
@ExtremeFiretop ExtremeFiretop requested a review from a team as a code owner March 20, 2026 13:37
@Martinski4GitHub
Copy link
Member

Right now we do this in this order:

1. Extra_WebUI_Modifications apply

2. create/load "$TEMP_MENU_TREE"

3. _CreateMenuAddOnsSection_

4. mount menuTree.js

That means on a fresh boot, Extra_WebUI_Modifications apply can run before menu_Addons exists in "$TEMP_MENU_TREE",

So .menu_Addons never gets added to /tmp/index_style.css.

Later in the same startup, CreateMenuAddOnsSection adds the Addons menu, but the CSS decision was already made.

Quick fix is moving: Extra_WebUI_Modifications apply to after "$TEMP_MENU_TREE" has been created and after CreateMenuAddOnsSection / Sitemap injection has finalized the menu state.

Yeah, the order of execution is critical to make sure the check is done at the right point in the sequence.
Excellent catch, bud!!

Copy link
Member

@Martinski4GitHub Martinski4GitHub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved the changes!!!

@Martinski4GitHub
Copy link
Member

@ExtremeFiretop,

After a closer code review, I found a couple of things that should be changed as well.
I'll submit a separate PR.

@Martinski4GitHub Martinski4GitHub merged commit 3d2f1a2 into develop Mar 21, 2026
1 check passed
@ExtremeFiretop
Copy link
Member Author

ExtremeFiretop commented Mar 21, 2026

Yeah, the order of execution is critical to make sure the check is done at the right point in the sequence. Excellent catch, bud!!

I wont lie, I initially took a bit of a guess where it should go in the Mount_WebUI function, and clearly, I guessed wrong LOL
I didn't put much thought into it initially, I just knew that the Mount_WebUI was the function I was targeting, but once I noticed the bug, it became clear pretty quickly that the order of operations was critical to get it right.

@ExtremeFiretop ExtremeFiretop deleted the Quick-Fix branch March 22, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants