Hop GUI: save project state also on open and save
@@ -107,6 +107,10 @@ public class HopGuiFileDelegate {
IHopFileTypeHandler fileTypeHandler = hopFile.openFile(hopGui, filename, hopGui.getVariables());
hopGui.handleFileCapabilities(hopFile, fileTypeHandler.hasChanged(), false, false);
+ // Also save the state of Hop GUI
+ //
+ hopGui.auditDelegate.writeLastOpenFiles();
+
return fileTypeHandler;
}
@@ -142,6 +146,10 @@ public class HopGuiFileDelegate {
typeHandler.saveAs(filename);
+ // Also save the state of Hop GUI
+ //
+ hopGui.auditDelegate.writeLastOpenFiles();
+
return filename;
} catch (Exception e) {
new ErrorDialog(hopGui.getShell(), "Error", "Error saving file", e);
