| 624 | } |
| 625 | |
| 626 | fire_and_forget MainPage::ConfigFolderSelectButton_Click(IInspectable const&, RoutedEventArgs const&) |
| 627 | { |
| 628 | try |
| 629 | { |
| 630 | m_configFolderPicker.FileTypeFilter().Clear(); |
| 631 | m_configFolderPicker.FileTypeFilter().Append(L"*"); |
| 632 | auto folder = co_await m_configFolderPicker.PickSingleFolderAsync(); |
| 633 | if (!folder) |
| 634 | { |
| 635 | co_return; |
| 636 | } |
| 637 | co_await folder.GetItemsAsync(); // Try to read something to see if is OK |
| 638 | ConfigUtil::SetConfigFolder(std::move(folder)); |
| 639 | LoadConfigs(); |
| 640 | } |
| 641 | catch (...) |
| 642 | { |
| 643 | UI::NotifyException(L"Select Config Folder"); |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | void MainPage::ConfigFolderResetButton_Click(IInspectable const&, RoutedEventArgs const&) |
| 648 | { |
nothing calls this directly
no outgoing calls
no test coverage detected