MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / GetSubMenuForState

Method GetSubMenuForState

Xaml/Pages/TrayFlyoutPage.cpp:325–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 }
324
325 wuxc::MenuFlyoutSubItem TrayFlyoutPage::GetSubMenuForState(txmp::TaskbarState state)
326 {
327 for (const wuxc::MenuFlyoutItemBase item : ContextMenu().Items())
328 {
329 if (const auto submenu = item.try_as<wuxc::MenuFlyoutSubItem>())
330 {
331 const auto tag = submenu.Tag().try_as<txmp::TaskbarState>();
332 if (tag == state)
333 {
334 return submenu;
335 }
336 }
337 }
338
339 return nullptr;
340 }
341}

Callers

nothing calls this directly

Calls 1

ContextMenuClass · 0.85

Tested by

no test coverage detected