Skip to content

Commit

Permalink
Merge pull request #7 from Cullen-Shannon/graham-todo-updates
Browse files Browse the repository at this point in the history
-Drag and drop logic to enable the Apply button working consistently now
  • Loading branch information
Cullen-Shannon authored Sep 18, 2024
2 parents 38fe846 + 772dbc7 commit 822cfdc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ private DefaultMutableTreeNode copy(DefaultMutableTreeNode node, HashSet<TreeNod

protected void exportDone(JComponent source, Transferable data, int action) {
if ((action & MOVE) == MOVE) {
// Set the "Apply" Button in the settings modal to be enabled
configurable.setApplyToTrue();

JTree tree = (JTree) source;
DefaultTreeModel model = (DefaultTreeModel) tree.getModel();
// Remove nodes saved in nodesToRemove in createTransferable.
for (int i = 0; i < nodesToRemove.length; i++) {
model.removeNodeFromParent(nodesToRemove[i]);
}

// Set the "Apply" Button in the settings modal to be enabled
configurable.setApplyToTrue();
}
}

Expand Down

0 comments on commit 822cfdc

Please sign in to comment.