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

Method OnExit

src/gui/mainwindow.cc:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 void OnExit(wxCommandEvent& event) override
177 {
178 if (wxGetApp().IsWorkerThreadRunning())
179 {
180 emergencyStop = true;
181
182 /* We need to wait for the worker thread to exit before we can
183 * continue to shut down. */
184
185 _exitTimer.StartOnce(100);
186 }
187 else
188 Destroy();
189 }
190
191 void OnClose(wxCloseEvent& event) override
192 {

Callers

nothing calls this directly

Calls 1

IsWorkerThreadRunningMethod · 0.80

Tested by

no test coverage detected