MCPcopy Create free account
hub / github.com/M2Team/NanaBox / RefreshSponsorButtonContent

Method RefreshSponsorButtonContent

NanaBox/MainWindowControl.cpp:407–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405 }
406
407 void MainWindowControl::RefreshSponsorButtonContent()
408 {
409 winrt::handle(Mile::CreateThread([=]()
410 {
411 bool Sponsored = this->CheckSponsorEditionLicense();
412
413 if (!this->m_DispatcherQueue)
414 {
415 return;
416 }
417 this->m_DispatcherQueue.TryEnqueue(
418 winrt::DispatcherQueuePriority::Normal,
419 [=]()
420 {
421 this->SponsorButton().Content(
422 winrt::box_value(Mile::WinRT::GetLocalizedString(
423 Sponsored
424 ? L"MainWindow/SponsorButton/SponsoredText"
425 : L"MainWindow/SponsorButton/AcquireText")));
426 });
427 }));
428 }
429}

Callers 2

PageLoadedMethod · 0.95
SponsorButtonClickMethod · 0.95

Calls 1

Tested by

no test coverage detected