MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / OnBrowserViewButton

Method OnBrowserViewButton

src/gui/browserpanel.cc:287–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

FindMethod · 0.80
to_strMethod · 0.80
runOnUiThreadFunction · 0.70
getFileMethod · 0.45

Tested by

no test coverage detected