Update comments in saveAsRocksim(File) method noting that the saved state flag in OpenRocketDocument should not be switched to true after a successful save.
This commit is contained in:
parent
3c7afcc2fb
commit
4757ce82f2
@ -1340,7 +1340,6 @@ public class BasicFrame extends JFrame {
|
||||
* @return true if the file was written
|
||||
*/
|
||||
private boolean saveAsRocksim(File file) {
|
||||
// FIME - this function can probably go away since the Worker thread can handle rocksim files.
|
||||
file = FileHelper.forceExtension(file, "rkt");
|
||||
if (!FileHelper.confirmWrite(file, this)) {
|
||||
return false;
|
||||
@ -1350,6 +1349,7 @@ public class BasicFrame extends JFrame {
|
||||
StorageOptions options = new StorageOptions();
|
||||
options.setFileType(StorageOptions.FileType.ROCKSIM);
|
||||
ROCKET_SAVER.save(file,document,options);
|
||||
// Do not update the save state of the document.
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user