Robustness and warning fixes.

This commit is contained in:
dg
2023-03-26 18:50:14 +00:00
parent 921e178e83
commit 5b2aa9926f
2 changed files with 13 additions and 3 deletions

View File

@@ -122,9 +122,16 @@ bool FluxEngineApp::IsWorkerThreadRunning() const
void FluxEngineApp::OnExec(const ExecEvent& event)
{
try
{
event.RunCallback();
if (event.IsSynchronous())
execSemaphore.Post();
}
catch (std::exception& e)
{
std::cerr << "Unhandled exception: " << e.what() << "\n";
}
}
void runOnUiThread(std::function<void()> callback)

View File

@@ -481,6 +481,9 @@ public:
visualiser->Clear();
_filesystemModel->Clear(Path());
_currentDisk = nullptr;
_filesystemCapabilities = 0;
_filesystemIsReadOnly = true;
_filesystemNeedsFlushing = false;
_state = STATE_BROWSING_WORKING;
UpdateState();