| 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 | } |
no test coverage detected