PDA

View Full Version : [zeditor] ZScript shouldn't prompt to save changes when no changes were made



Asuna Yuuki Nagato
02-21-2024, 10:59 PM
Steps to recreate:


File->New
ZScript->Compile ZScript...; 9-button "Compile ZScript" window appears
Click 'Edit'; white 'Edit ZScript' window appears with #include "std.zh"
Press ESC
Observe "Save changes to buffer?" Yes/No msgbox appears


This msgbox could cause novice scripters to become paranoid that they accidentally modified their script when that isn't the case.

Asuna Yuuki Nagato
02-22-2024, 01:29 AM
Similarly, we can probably skip the "Confirm Overwrite" msgbox when clicking 'Load' in that 9-button window when '#include "std.zh"' is the only thing in the buffer.