MCPcopy Create free account
hub / github.com/chrxh/alien / processScheduleExit

Method processScheduleExit

source/Gui/MainLoopController.cpp:239–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void MainLoopController::processScheduleExit()
240{
241 if (_saveOnExit) {
242 printOverlayMessage("Saving on exit ...");
243
244 auto senderInfo = SenderInfo{.senderId = SenderId{StartupSenderId}, .wishResultData = true, .wishErrorInfo = false};
245 auto saveData = SaveSimulationRequestData{Const::AutosaveFile, Viewport::get().getZoomFactor(), Viewport::get().getCenterInWorldPos()};
246 _saveSimRequestId = _persisterFacade->scheduleSaveSimulation(senderInfo, saveData);
247 _programState = ProgramState::Exiting;
248 } else {
249 _programState = ProgramState::Finished;
250 }
251}
252
253void MainLoopController::processExiting()
254{

Callers

nothing calls this directly

Calls 4

printOverlayMessageFunction · 0.85
getZoomFactorMethod · 0.80
getCenterInWorldPosMethod · 0.80

Tested by

no test coverage detected