made export synchronized to perhaps avoid double-clicks

This commit is contained in:
benfry
2004-07-12 20:03:17 +00:00
parent 032078ac8c
commit d08290fcc7

View File

@@ -1357,8 +1357,11 @@ implements MRJAboutHandler, MRJQuitHandler, MRJPrefsHandler
/**
* Handles calling the export() function on sketch, and
* queues all the gui status stuff that comes along with it.
*
* Made synchronized to (hopefully) avoid problems of people
* hitting export twice, quickly, and horking things up.
*/
public void handleExport() {
synchronized public void handleExport() {
message("Exporting code...");
try {
if (sketch.export()) {