Fix #1900 Resetting toolbar twice empties it

This commit is contained in:
JannisX11 2023-06-07 19:22:03 +02:00
parent 3a6a7b8fd5
commit e9500e0ef8

View File

@ -1461,6 +1461,7 @@ class Toolbar {
if (data.default_place) {
this.toPlace(this.id)
}
this.condition_cache.empty();
return this;
}
contextmenu(event) {
@ -1547,7 +1548,6 @@ class Toolbar {
}
}
//scope.condition_cache.empty();
let needsUpdate = force === true || scope.condition_cache.length !== scope.children.length;
scope.condition_cache.length = scope.children.length;