mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +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>();
|
||||
connect(_desktop, SIGNAL(toolbarVisibleChanged(bool, QString)), toolbarScriptingInterface.data(), SIGNAL(toolbarVisibleChanged(bool, QString)));
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ private:
|
|||
QList<QObject*> _modalDialogListeners;
|
||||
std::unordered_map<int, bool> _pressedKeys;
|
||||
VrMenu* _vrMenu { nullptr };
|
||||
QQueue<std::function<void(VrMenu*)>> _queuedMenuInitializers;
|
||||
QQueue<std::function<void(VrMenu*)>> _queuedMenuInitializers;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -466,7 +466,9 @@ function onDisplayModeChanged(isHMDMode) {
|
|||
function onToolbarVisibleChanged(isVisible, toolbarName) {
|
||||
if (isVisible && toolbarName == TOOLBAR_NAME) {
|
||||
var toolbar = Toolbars.getToolbar(toolbarName);
|
||||
toolbar.writeProperty("visible", false);
|
||||
if (toolbar) {
|
||||
toolbar.writeProperty("visible", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue