Fixed memory leaks.

Closed projects were held in memory because the Map folder watcher
threads were still alive.
This commit is contained in:
Zukero
2018-02-28 16:25:28 +01:00
parent 221a031c2b
commit 0b8bc8448a
2 changed files with 16 additions and 12 deletions

View File

@@ -59,6 +59,7 @@ public class WorkspaceActions {
public void actionPerformed(ActionEvent e) {
if (!(selectedNode instanceof Project)) return;
Workspace.closeProject((Project) selectedNode);
selectedNode = null;
};
public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) {
setEnabled(selectedNode instanceof Project);