mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
hopefully good now
This commit is contained in:
parent
8fa80f8935
commit
29d795af5b
4 changed files with 7 additions and 6 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "VrMenu.h"
|
||||
|
||||
#include "ui/Logging.h"
|
||||
#include "ui/ToolbarScriptingInterface.h"
|
||||
|
||||
#include <PointerManager.h>
|
||||
#include "MainWindow.h"
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <DependencyManager.h>
|
||||
|
||||
#include "ui/OffscreenQmlSurface.h"
|
||||
#include "ui/ToolbarScriptingInterface.h"
|
||||
#include "OffscreenQmlElement.h"
|
||||
|
||||
class VrMenu;
|
||||
|
@ -272,7 +271,6 @@ private:
|
|||
std::unordered_map<int, bool> _pressedKeys;
|
||||
VrMenu* _vrMenu { nullptr };
|
||||
QQueue<std::function<void(VrMenu*)>> _queuedMenuInitializers;
|
||||
ToolbarProxy* _currentToolbarProxy;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -119,4 +119,4 @@ ToolbarProxy* ToolbarScriptingInterface::getToolbar(const QString& toolbarId) {
|
|||
}
|
||||
|
||||
return new ToolbarProxy(rawToolbar);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -464,8 +464,8 @@ function onDisplayModeChanged(isHMDMode) {
|
|||
}
|
||||
|
||||
function onToolbarVisibleChanged(isVisible, toolbarName) {
|
||||
var toolbar = Toolbars.getToolbar(toolbarName);
|
||||
if (isVisible) {
|
||||
if (isVisible && toolbarName == TOOLBAR_NAME) {
|
||||
var toolbar = Toolbars.getToolbar(toolbarName);
|
||||
toolbar.writeProperty("visible", false);
|
||||
}
|
||||
}
|
||||
|
@ -497,7 +497,9 @@ function startup() {
|
|||
|
||||
if (!HMD.active) {
|
||||
var toolbar = Toolbars.getToolbar(TOOLBAR_NAME);
|
||||
toolbar.writeProperty("visible", false);
|
||||
if (toolbar) {
|
||||
toolbar.writeProperty("visible", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue