select the first imported layer after a merge
This commit is contained in:
parent
41ef0cd460
commit
4d07a4eb90
1 changed files with 6 additions and 0 deletions
|
@ -158,6 +158,12 @@
|
|||
resize: this.mergeData.resize
|
||||
});
|
||||
this.piskelController.setPiskel(merge);
|
||||
|
||||
// Set the first imported layer as selected.
|
||||
var importedLayers = piskel.getLayers().length;
|
||||
var currentLayers = this.piskelController.getLayers().length;
|
||||
this.piskelController.setCurrentLayerIndex(currentLayers - importedLayers);
|
||||
|
||||
this.closeDialog();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue