Tablet Asset Server dialog was instantiated twice

This commit is contained in:
vladest 2018-07-01 19:56:51 +02:00
parent bbc757a193
commit 0657992e9c

View file

@ -6979,7 +6979,9 @@ void Application::showAssetServerWidget(QString filePath) {
DependencyManager::get<OffscreenUi>()->show(url, "AssetServer", startUpload);
} else {
static const QUrl url("hifi/dialogs/TabletAssetServer.qml");
tablet->pushOntoStack(url);
if (!tablet->isPathLoaded(url)) {
tablet->pushOntoStack(url);
}
}
}