| 285 | } |
| 286 | |
| 287 | void OnBrowserViewButton(wxCommandEvent&) override |
| 288 | { |
| 289 | auto item = browserTree->GetSelection(); |
| 290 | auto node = _filesystemModel->Find(item); |
| 291 | |
| 292 | QueueJob( |
| 293 | [this, node]() |
| 294 | { |
| 295 | auto bytes = _filesystem->getFile(node->dirent->path); |
| 296 | |
| 297 | runOnUiThread( |
| 298 | [&]() |
| 299 | { |
| 300 | (new FileViewerWindow( |
| 301 | this, node->dirent->path.to_str(), bytes)) |
| 302 | ->Show(); |
| 303 | }); |
| 304 | }); |
| 305 | } |
| 306 | |
| 307 | void OnBrowserSaveButton(wxCommandEvent&) override |
| 308 | { |
nothing calls this directly
no test coverage detected