mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 01:31:37 +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)));
|
||||
|
||||
|
|
|
@ -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