removed a dead line of code, made a couple formating changes

This commit is contained in:
Preston Bezos 2019-06-12 15:47:19 -07:00
parent 29d795af5b
commit 8dcf6e6a03
3 changed files with 4 additions and 3 deletions

View file

@ -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)));

View file

@ -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

View file

@ -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);
}
}
}