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

Method OnBrowserDeleteMenuItem

src/gui/browserpanel.cc:419–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417 }
418
419 void OnBrowserDeleteMenuItem(wxCommandEvent&) override
420 {
421 auto item = browserTree->GetSelection();
422 auto node = _filesystemModel->Find(item);
423 if (!node)
424 return;
425
426 QueueJob(
427 [this, node]()
428 {
429 _filesystem->deleteFile(node->dirent->path);
430
431 runOnUiThread(
432 [&]()
433 {
434 _filesystemModel->Delete(node->dirent->path);
435 UpdateFilesystemData();
436 });
437 });
438 }
439
440 void OnBrowserFormatButton(wxCommandEvent&) override
441 {

Callers

nothing calls this directly

Calls 4

FindMethod · 0.80
DeleteMethod · 0.80
runOnUiThreadFunction · 0.70
deleteFileMethod · 0.45

Tested by

no test coverage detected