You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PowerDisplay] Use ResourceMap.TryGetValue for bullet-probe loop
Fix dialog never showing: MRT++ ResourceLoader.GetString throws
"NamedResource Not Found" when the key is absent — not return empty
string like the legacy WinRT loader. The Item{N} probe loop hit that
the moment it walked past the last real bullet, the exception bubbled
through ConfirmAndEnableModuleAsync's try/catch, the dialog never
showed, and the ToggleSwitch snapped back to OFF.
Replace the loop's GetString with ResourceMap.TryGetValue on a direct
handle to the Settings PRI's "Resources" subtree — returns null for
missing keys, no exception, no exception-driven control flow. Other
GetString calls in the constructor stay (those keys must exist; a
miss is a real bug worth surfacing).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments