From cedc3cf8b6793284bb776a514c271829c021123f Mon Sep 17 00:00:00 2001 From: Vladyslav Stelmakhovskyi Date: Mon, 20 Mar 2017 23:43:01 +0100 Subject: [PATCH] Fix naming. Move variable instantiation within scope --- interface/src/Application.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index b48a247bb1..0738b463a4 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -5823,15 +5823,15 @@ bool Application::displayAvatarAttachmentConfirmationDialog(const QString& name) void Application::toggleRunningScriptsWidget() const { auto scriptEngines = DependencyManager::get(); - bool _scriptsRunning = !scriptEngines->getRunningScripts().isEmpty(); + bool scriptsRunning = !scriptEngines->getRunningScripts().isEmpty(); auto tabletScriptingInterface = DependencyManager::get(); - auto tablet = dynamic_cast(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system")); - auto hmd = DependencyManager::get(); - if (tablet->getToolbarMode() || false == _scriptsRunning) { + + if (tablet->getToolbarMode() || false == scriptsRunning) { static const QUrl url("hifi/dialogs/RunningScripts.qml"); DependencyManager::get()->show(url, "RunningScripts"); } else { + auto hmd = DependencyManager::get(); if (!hmd->getShouldShowTablet() && !isHMDMode()) { static const QUrl url("hifi/dialogs/RunningScripts.qml"); DependencyManager::get()->show(url, "RunningScripts");