if (doRecordCBx.isSelected()) {
actionRecorder.recordStop();
}
renderThread.setForceAbort(true);
if (doRecordCBx.isSelected()) {
JFileChooser chooser = new FlameFileChooser(prefs);
if (prefs.getOutputFlamePath() != null) {
try {
chooser.setCurrentDirectory(new File(prefs.getOutputFlamePath()));
}
catch (Exception ex) {
ex.printStackTrace();
}
}
if (chooser.showSaveDialog(flameRootPanel) == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
prefs.setLastOutputFlameFile(file);
PostRecordFlameGenerator generator = new PostRecordFlameGenerator(Prefs.getPrefs(), project, actionRecorder, renderThread, project.getFFT());
generator.createRecordedFlameFiles(file.getAbsolutePath());
}
}