oops, missed that case

This commit is contained in:
Manindra Moharana
2014-01-13 20:18:22 +05:30
parent dd1c65e1d4
commit 507e3ca765
2 changed files with 12 additions and 0 deletions

View File

@@ -842,6 +842,8 @@ public class DebugEditor extends JavaEditor implements ActionListener {
});
}
}
// if file location has changed, update autosaver
autosaver.reloadAutosaveDir();
return saved;
}
@@ -870,10 +872,15 @@ public class DebugEditor extends JavaEditor implements ActionListener {
// set new name of variable inspector
vi.setTitle(getSketch().getName());
}
// if file location has changed, update autosaver
autosaver.reloadAutosaveDir();
return saved;
}
public void loadAutoSaver(){
if(autosaver != null){
autosaver.stop();
}
autosaver = new AutoSaveUtil(this, dmode.autoSaveInterval);
if(!autosaver.checkForPastSave()) {
autosaver.init();