mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 13:56:24 +02:00
removed extraneous debug prints
This commit is contained in:
parent
4c434e875e
commit
8bc9a92429
5 changed files with 3 additions and 15 deletions
|
@ -328,7 +328,6 @@ ScrollingWindow {
|
|||
id: timer
|
||||
}
|
||||
function uploadClicked(fileUrl) {
|
||||
console.log("Upload clicked url: " + fileUrl);
|
||||
if (uploadOpen) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -49,7 +49,6 @@ Rectangle {
|
|||
element.click();'
|
||||
|
||||
onNewViewRequested: {
|
||||
console.log("new view requested url");
|
||||
var component = Qt.createComponent("Browser.qml");
|
||||
var newWindow = component.createObject(desktop);
|
||||
request.openIn(newWindow.webView);
|
||||
|
@ -68,7 +67,6 @@ Rectangle {
|
|||
|
||||
onLinkHovered: {
|
||||
desktop.currentUrl = hoveredUrl
|
||||
console.log("my url in WebView: " + desktop.currentUrl)
|
||||
if (File.isZippedFbx(desktop.currentUrl)) {
|
||||
runJavaScript(simpleDownload, function(){console.log("ran the JS");});
|
||||
}
|
||||
|
|
|
@ -51,7 +51,6 @@ WebEngineView {
|
|||
|
||||
onLoadingChanged: {
|
||||
// Required to support clicking on "hifi://" links
|
||||
console.log("loading change requested url");
|
||||
if (WebEngineView.LoadStartedStatus == loadRequest.status) {
|
||||
var url = loadRequest.url.toString();
|
||||
if (urlHandler.canHandleUrl(url)) {
|
||||
|
|
|
@ -80,7 +80,7 @@ OriginalDesktop.Desktop {
|
|||
property string tempDir: ""
|
||||
|
||||
function initWebviewProfileHandlers(profile) {
|
||||
console.log("the webview url in desktop is: " + currentUrl);
|
||||
console.log("The webview url in desktop is: " + currentUrl);
|
||||
if (webViewProfileSetup) return;
|
||||
webViewProfileSetup = true;
|
||||
|
||||
|
@ -90,9 +90,8 @@ OriginalDesktop.Desktop {
|
|||
tempDir = File.getTempDir();
|
||||
console.log("Temp dir created: " + tempDir);
|
||||
download.path = tempDir + "/" + adaptedPath;
|
||||
console.log("Path where it should download: " + download.path);
|
||||
console.log("Path where object should download: " + download.path);
|
||||
download.accept();
|
||||
console.log("Download accept: " + download.state);
|
||||
if (download.state === WebEngineDownloadItem.DownloadInterrupted) {
|
||||
console.log("download failed to complete");
|
||||
}
|
||||
|
@ -100,8 +99,6 @@ OriginalDesktop.Desktop {
|
|||
|
||||
profile.downloadFinished.connect(function(download){
|
||||
if (download.state === WebEngineDownloadItem.DownloadCompleted) {
|
||||
console.log("Download Finished: " + download.state);
|
||||
console.log("File object is: " + File);
|
||||
File.runUnzip(download.path, currentUrl);
|
||||
} else {
|
||||
console.log("The download was corrupted, state: " + download.state);
|
||||
|
|
|
@ -35,7 +35,6 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) {
|
|||
qDebug() << "Url that was downloaded: " + url.toString();
|
||||
qDebug() << "Path where download is saved: " + path;
|
||||
QString fileName = "/" + path.section("/", -1);
|
||||
qDebug() << "Filename to remove from temp path: " + fileName;
|
||||
QString tempDir = path;
|
||||
tempDir.remove(fileName);
|
||||
qDebug() << "Temporary directory at: " + tempDir;
|
||||
|
@ -46,9 +45,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) {
|
|||
|
||||
QString file = unzipFile(path, tempDir);
|
||||
if (file != "") {
|
||||
qDebug() << "file to upload: " + file;
|
||||
qDebug() << "Object file to upload: " + file;
|
||||
QUrl url = QUrl::fromLocalFile(file);
|
||||
qDebug() << "url from local file: " + url.toString();
|
||||
emit unzipSuccess(url.toString());
|
||||
} else {
|
||||
qDebug() << "unzip failed";
|
||||
|
@ -73,7 +71,6 @@ bool FileScriptingInterface::isTempDir(QString tempDir) {
|
|||
|
||||
bool FileScriptingInterface::isZippedFbx(QUrl url) {
|
||||
if (url.toString().contains(".zip") && url.toString().contains("fbx")) return true;
|
||||
qDebug() << "This model is not a .fbx packaged in a .zip. Please try with another model.";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -108,9 +105,7 @@ QString FileScriptingInterface::unzipFile(QString path, QString tempDir) {
|
|||
|
||||
QDir dir(path);
|
||||
QString dirName = dir.path();
|
||||
qDebug() << "Zip directory is stored at: " + dirName;
|
||||
QString target = tempDir + "/model_repo";
|
||||
qDebug() << "Target path: " + target;
|
||||
QStringList list = JlCompress::extractDir(dirName, target);
|
||||
|
||||
qDebug() << list;
|
||||
|
|
Loading…
Reference in a new issue