| 75 | |
| 76 | public: |
| 77 | void StartBrowsing() override |
| 78 | { |
| 79 | try |
| 80 | { |
| 81 | SetPage(MainWindow::PAGE_BROWSER); |
| 82 | PrepareConfig(); |
| 83 | |
| 84 | _filesystemModel->Clear(Path()); |
| 85 | _filesystemCapabilities = 0; |
| 86 | _filesystemIsReadOnly = true; |
| 87 | _filesystemNeedsFlushing = false; |
| 88 | |
| 89 | SetState(STATE_WORKING); |
| 90 | |
| 91 | QueueJob( |
| 92 | [this]() |
| 93 | { |
| 94 | _filesystem = Filesystem::createFilesystemFromConfig(); |
| 95 | _filesystemCapabilities = _filesystem->capabilities(); |
| 96 | _filesystemIsReadOnly = _filesystem->isReadOnly(); |
| 97 | |
| 98 | runOnUiThread( |
| 99 | [&]() |
| 100 | { |
| 101 | RepopulateBrowser(); |
| 102 | }); |
| 103 | }); |
| 104 | } |
| 105 | catch (const ErrorException& e) |
| 106 | { |
| 107 | wxMessageBox(e.message, "Error", wxOK | wxICON_ERROR); |
| 108 | StartIdle(); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void StartFormatting() override |
| 113 | { |
nothing calls this directly
no test coverage detected