Editor: disable "Save" button when code is not modified

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Editor: disable "Save" button when code is not modified

Post by Psychophanta »

I think this is a minor change in the editor functionallity, but interesting one:
In the PB editor, when a source code is modified and not saved to disk, there appears in the panel gadget, the file name with an asterisk at the end, but the button icon of "save" is not disabled.
May be interesting the functionallity of disable this button when source code is not modified, and enable it only if code is modified and not saved (exactly when asterisk does appear) just as happens with "openoffice", "libreoffice", etc.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;