Update interface/src/scripting/AssetMappingsScriptingInterface.cpp

Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
HifiExperiments 2021-01-29 17:11:24 -08:00 committed by GitHub
parent 3d9142d8cb
commit bae12e4e39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,8 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
"Use the field below to place your file in a specific folder or to rename it. "
"Specifying a new folder name will automatically create that folder for you.";
auto offscreenUi = DependencyManager::get<OffscreenUi>();
if (!offscreenUi) {
auto offscreenUI = DependencyManager::get<OffscreenUi>();
if (!offscreenUI) {
completedCallback.call({ -1 });
return;
}