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

Method StartBrowsing

src/gui/browserpanel.cc:77–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76public:
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 {

Callers

nothing calls this directly

Calls 5

PathClass · 0.70
runOnUiThreadFunction · 0.70
ClearMethod · 0.45
capabilitiesMethod · 0.45
isReadOnlyMethod · 0.45

Tested by

no test coverage detected