Compare commits

...

2 Commits

Author SHA1 Message Date
dg
acf32c2a5c Tidy. 2023-04-06 09:33:30 +00:00
dg
41460457a3 When overriding the layout, make sure that the previous layout is erased. 2023-04-05 21:11:34 +00:00
3 changed files with 6 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ public:
config.set_tpi(48);
}
config.clear_layout();
auto layout = config.mutable_layout();
std::unique_ptr<Image> image(new Image);
for (int track = 0; track < trackTableSize / 4; track++)

View File

@@ -74,7 +74,6 @@ private:
void OnQueueFailed() override
{
fmt::print("queue failed\n");
if (_state == STATE_READING_WORKING)
_state = STATE_READING_FAILED;
else if (_state == STATE_WRITING_WORKING)

View File

@@ -75,6 +75,11 @@ wxThread::ExitCode FluxEngineApp::Entry()
{
Logger() << EmergencyStopMessage();
}
catch (const std::exception& e)
{
Logger() << ErrorLogMessage{
fmt::format("unhandled exception: {}\n", e.what())};
}
postToUiThread(
[&]