Skip to content

Commit

Permalink
Update Up & Down bt when adding a new item
Browse files Browse the repository at this point in the history
  • Loading branch information
smariel committed Feb 16, 2019
1 parent b1dac82 commit 5372b44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/class.PTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,7 @@ class PTree {
this.updateClearButtons();
this.saveHistory();
this.canvas.selectItem(newItem);
this.updateUpDownButtons();
});


Expand Down Expand Up @@ -990,6 +991,7 @@ class PTree {
this.canvas.refresh();
this.saveHistory();
if(selectedItem.isVisible()) this.canvas.selectItem(newItem);
this.updateUpDownButtons();
});


Expand All @@ -1001,6 +1003,7 @@ class PTree {
this.canvas.refresh();
this.saveHistory();
if(selectedItem.isVisible()) this.canvas.selectItem(newItem);
this.updateUpDownButtons();
});


Expand Down

0 comments on commit 5372b44

Please sign in to comment.