mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Robustness and warning fixes.
This commit is contained in:
@@ -122,9 +122,16 @@ bool FluxEngineApp::IsWorkerThreadRunning() const
|
||||
|
||||
void FluxEngineApp::OnExec(const ExecEvent& event)
|
||||
{
|
||||
event.RunCallback();
|
||||
if (event.IsSynchronous())
|
||||
execSemaphore.Post();
|
||||
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)
|
||||
|
||||
@@ -481,6 +481,9 @@ public:
|
||||
visualiser->Clear();
|
||||
_filesystemModel->Clear(Path());
|
||||
_currentDisk = nullptr;
|
||||
_filesystemCapabilities = 0;
|
||||
_filesystemIsReadOnly = true;
|
||||
_filesystemNeedsFlushing = false;
|
||||
|
||||
_state = STATE_BROWSING_WORKING;
|
||||
UpdateState();
|
||||
|
||||
Reference in New Issue
Block a user