mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
Set ective button property isActive before Home menu redraw. Makes sure redraw will read proper value of isActive property
This commit is contained in:
parent
0a864a7ce9
commit
4dbe646c17
1 changed files with 2 additions and 1 deletions
|
@ -618,7 +618,6 @@ var toolBar = (function () {
|
|||
|
||||
that.toggle = function () {
|
||||
that.setActive(!isActive);
|
||||
activeButton.editProperties({isActive: isActive});
|
||||
if (!isActive) {
|
||||
tablet.gotoHomeScreen();
|
||||
}
|
||||
|
@ -642,6 +641,8 @@ var toolBar = (function () {
|
|||
enabled: active
|
||||
}));
|
||||
isActive = active;
|
||||
activeButton.editProperties({isActive: isActive});
|
||||
|
||||
if (!isActive) {
|
||||
entityListTool.setVisible(false);
|
||||
gridTool.setVisible(false);
|
||||
|
|
Loading…
Reference in a new issue