mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
narrowed filters for Clara website check
This commit is contained in:
parent
288ba96795
commit
18700d6397
1 changed files with 3 additions and 3 deletions
|
@ -71,18 +71,18 @@ bool FileScriptingInterface::isTempDir(QString tempDir) {
|
|||
|
||||
// checks whether the webview is displaying a Clara.io page for Marketplaces.qml
|
||||
bool FileScriptingInterface::isClaraLink(QUrl url) {
|
||||
if (url.toString().contains("clara") && !url.toString().contains("clara.io/signup")) return true;
|
||||
if (url.toString().contains("clara.io") && !url.toString().contains("clara.io/signup")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// checks whether a user tries to download a file that is not in .fbx format
|
||||
bool FileScriptingInterface::isNotFbx(QUrl url) {
|
||||
if (url.toString().contains(".zip") && !(url.toString().contains("fbx") )) return true;
|
||||
if (url.toString().endsWith(".zip") && !(url.toString().contains("fbx") )) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool FileScriptingInterface::isZippedFbx(QUrl url) {
|
||||
if (url.toString().contains(".zip") && url.toString().contains("fbx")) return true;
|
||||
if (url.toString().endsWith("fbx.zip")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue