Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -69,11 +69,18 @@ bool FileScriptingInterface::isTempDir(QString tempDir) { · 68 unmodified lines | ||
| 69 | 69 | return false; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | +// checks whether the webview is displaying a Clara.io page for Marketplaces.qml | |
| 72 | 73 | bool FileScriptingInterface::isClaraLink(QUrl url) { |
| 73 | 74 | if (url.toString().contains("clara") && !url.toString().contains("clara.io/signup")) return true; |
| 74 | 75 | return false; |
| 75 | 76 | } |
| 76 | 77 | |
| 78 | +// checks whether a user tries to download a file that is not in .fbx format | |
| 79 | +bool FileScriptingInterface::isNotFbx(QUrl url) { | |
| 80 | + if (url.toString().contains(".zip") && !(url.toString().contains("fbx") )) return true; | |
| 81 | + return false; | |
| 82 | +} | |
| 83 | + | |
| 77 | 84 | bool FileScriptingInterface::isZippedFbx(QUrl url) { |
| 78 | 85 | if (url.toString().contains(".zip") && url.toString().contains("fbx")) return true; |
| 79 | 86 | return false; |