mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Fix #964 Adding hide sidebars button to top toolbar causes TypeError on next open
This commit is contained in:
parent
cc73aa8a9c
commit
d7881f6da1
@ -1593,7 +1593,7 @@ const BARS = {
|
||||
new Action('toggle_sidebars', {
|
||||
icon: 'view_array',
|
||||
category: 'view',
|
||||
condition: () => !Blockbench.isMobile && !Mode.selected.hide_sidebars,
|
||||
condition: () => !Blockbench.isMobile && Mode.selected && !Mode.selected.hide_sidebars,
|
||||
keybind: new Keybind({key: 'b', ctrl: true}),
|
||||
click: function () {
|
||||
let status = !Prop.show_left_bar;
|
||||
|
Loading…
Reference in New Issue
Block a user