Analyze | Stop Tracing (Ctrl+Shift+S) saves CSV only if a point is being traced

This avoids confusion with "Ctrl+Shift+S" being used as "Save As..." shortcut
on some platforms.
pull/846/head
Koen Schmeets 2020-12-04 23:27:16 +01:00 committed by ruevs
parent 5fa23189d9
commit f5086b62cc
1 changed files with 3 additions and 0 deletions

View File

@ -904,6 +904,9 @@ void SolveSpaceUI::MenuAnalyze(Command id) {
break;
case Command::STOP_TRACING: {
if (SS.traced.point == Entity::NO_ENTITY) {
break;
}
Platform::FileDialogRef dialog = Platform::CreateSaveFileDialog(SS.GW.window);
dialog->AddFilters(Platform::CsvFileFilters);
dialog->ThawChoices(settings, "Trace");