aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorNick Coutsos <[email protected]>2022-04-10 22:43:10 -0400
committerNick Coutsos <[email protected]>2022-04-11 00:20:53 -0400
commitd61a71b2882e203d3c2dde9532e404f54b122986 (patch)
treefe106b35af6913574c34d846addbc68820f127de /application
parentb742ab0620c7a4a30e36113eb49a3384267cd30e (diff)
downloadkeymap-editor-d61a71b2882e203d3c2dde9532e404f54b122986.tar.gz
keymap-editor-d61a71b2882e203d3c2dde9532e404f54b122986.zip
Bugfix: deleting layer when currently viewing topmost layer causes crash
Diffstat (limited to 'application')
-rw-r--r--application/components/keymap.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/components/keymap.vue b/application/components/keymap.vue
index 7bf7736..65cee41 100644
--- a/application/components/keymap.vue
+++ b/application/components/keymap.vue
@@ -134,6 +134,7 @@ export default {
const layers = [...this.keymap.layers];
layers.splice(layerIndex, 1);
+ this.activeLayer = layers.length - 1
this.$emit("update", { ...this.keymap, layers, layer_names });
},
}