Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -83,6 +83,7 @@ void AssetMappingsScriptingInterface::getMapping(QString path, QJSValue callback · 82 unmodified lines | |||
| 83 | void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, QJSValue callback) { | 83 | void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, QJSValue callback) { |
| 84 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); | 84 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); |
| 85 | auto result = offscreenUi->inputDialog(OffscreenUi::ICON_NONE, "Enter asset path:", "", mapping); | 85 | auto result = offscreenUi->inputDialog(OffscreenUi::ICON_NONE, "Enter asset path:", "", mapping); |
| 86 | |||
| 86 | if (!result.isValid()) { | 87 | if (!result.isValid()) { |
| 87 | return; | 88 | return; |
| 88 | } | 89 | } |