mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:28:13 +02:00
removed a dead line of code, made a couple formating changes
This commit is contained in:
parent
29d795af5b
commit
8dcf6e6a03
3 changed files with 4 additions and 3 deletions
|
@ -690,7 +690,6 @@ void OffscreenUi::createDesktop(const QUrl& url) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString toolbarName = newObject->property("toolbarObjectName").toString(); // will return "com.highfidelity.interface.toolbar.system"
|
|
||||||
auto toolbarScriptingInterface = DependencyManager::get<ToolbarScriptingInterface>();
|
auto toolbarScriptingInterface = DependencyManager::get<ToolbarScriptingInterface>();
|
||||||
connect(_desktop, SIGNAL(toolbarVisibleChanged(bool, QString)), toolbarScriptingInterface.data(), SIGNAL(toolbarVisibleChanged(bool, QString)));
|
connect(_desktop, SIGNAL(toolbarVisibleChanged(bool, QString)), toolbarScriptingInterface.data(), SIGNAL(toolbarVisibleChanged(bool, QString)));
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,7 @@ private:
|
||||||
QList<QObject*> _modalDialogListeners;
|
QList<QObject*> _modalDialogListeners;
|
||||||
std::unordered_map<int, bool> _pressedKeys;
|
std::unordered_map<int, bool> _pressedKeys;
|
||||||
VrMenu* _vrMenu { nullptr };
|
VrMenu* _vrMenu { nullptr };
|
||||||
QQueue<std::function<void(VrMenu*)>> _queuedMenuInitializers;
|
QQueue<std::function<void(VrMenu*)>> _queuedMenuInitializers;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -466,7 +466,9 @@ function onDisplayModeChanged(isHMDMode) {
|
||||||
function onToolbarVisibleChanged(isVisible, toolbarName) {
|
function onToolbarVisibleChanged(isVisible, toolbarName) {
|
||||||
if (isVisible && toolbarName == TOOLBAR_NAME) {
|
if (isVisible && toolbarName == TOOLBAR_NAME) {
|
||||||
var toolbar = Toolbars.getToolbar(toolbarName);
|
var toolbar = Toolbars.getToolbar(toolbarName);
|
||||||
toolbar.writeProperty("visible", false);
|
if (toolbar) {
|
||||||
|
toolbar.writeProperty("visible", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue