mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix #1900 Resetting toolbar twice empties it
This commit is contained in:
parent
3a6a7b8fd5
commit
e9500e0ef8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user