Compare commits

...

2 Commits

Author SHA1 Message Date
565779c9c8 Merge pull request 'B2025-009 RO Editor - Disable the Save As button if it is a new RO that has not been saved yet.' (#493) from B2025-009 into Development
change ready for testing
2025-01-22 12:01:04 -05:00
b4ccd682c3 B2025-009 RO Editor - Disable the Save As button if it is a new RO that has not been saved yet.
Adding a new RO:  when you click Save As, you get the Problem Saving Data message box. Should only be able to “Save As” if it has already been previously saved.
2025-01-22 11:57:57 -05:00

View File

@ -1154,7 +1154,10 @@ namespace ROEditor
tbtnCancel.Enabled = true; tbtnCancel.Enabled = true;
tbtnSave.Enabled = true; tbtnSave.Enabled = true;
tbtnRestore.Enabled = true; tbtnRestore.Enabled = true;
tbtnSaveAs.Enabled = true; if (newone == null)
{ tbtnSaveAs.Enabled = true; }
else
{ tbtnSaveAs.Enabled = false; }
} }
menuROSave.Enabled = tbtnSave.Enabled; menuROSave.Enabled = tbtnSave.Enabled;
} }
@ -1170,7 +1173,10 @@ namespace ROEditor
tbtnSave.Enabled = true; tbtnSave.Enabled = true;
tbtnRestore.Enabled = true; tbtnRestore.Enabled = true;
tbtnSaveAs.Enabled = true; if (newone == null)
{ tbtnSaveAs.Enabled = true; }
else
{ tbtnSaveAs.Enabled = false; }
tbtnCancel.Enabled = true; tbtnCancel.Enabled = true;
menuROSave.Enabled = tbtnSave.Enabled; menuROSave.Enabled = tbtnSave.Enabled;
//B2021-080 set the mysavexml flag to true to ensure the text change will be saved //B2021-080 set the mysavexml flag to true to ensure the text change will be saved