mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:24:36 +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.toggle = function () {
|
||||||
that.setActive(!isActive);
|
that.setActive(!isActive);
|
||||||
activeButton.editProperties({isActive: isActive});
|
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
tablet.gotoHomeScreen();
|
tablet.gotoHomeScreen();
|
||||||
}
|
}
|
||||||
|
@ -642,6 +641,8 @@ var toolBar = (function () {
|
||||||
enabled: active
|
enabled: active
|
||||||
}));
|
}));
|
||||||
isActive = active;
|
isActive = active;
|
||||||
|
activeButton.editProperties({isActive: isActive});
|
||||||
|
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
entityListTool.setVisible(false);
|
entityListTool.setVisible(false);
|
||||||
gridTool.setVisible(false);
|
gridTool.setVisible(false);
|
||||||
|
|
Loading…
Reference in a new issue