mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 08:33:38 +02:00
enabled version check
This commit is contained in:
parent
4c28b9f09a
commit
65f876acf3
3 changed files with 5 additions and 5 deletions
|
@ -264,8 +264,8 @@ void WindowScriptingInterface::showAssetServer(const QString& upload) {
|
|||
QMetaObject::invokeMethod(qApp, "showAssetServerWidget", Qt::QueuedConnection, Q_ARG(QString, upload));
|
||||
}
|
||||
|
||||
int WindowScriptingInterface::checkVersion() {
|
||||
return QCoreApplication::applicationVersion().toInt();
|
||||
QString WindowScriptingInterface::checkVersion() {
|
||||
return QCoreApplication::applicationVersion();
|
||||
}
|
||||
|
||||
int WindowScriptingInterface::getInnerWidth() {
|
||||
|
|
|
@ -58,7 +58,7 @@ public slots:
|
|||
QScriptValue save(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");
|
||||
QScriptValue browseAssets(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");
|
||||
void showAssetServer(const QString& upload = "");
|
||||
int checkVersion();
|
||||
QString checkVersion();
|
||||
void copyToClipboard(const QString& text);
|
||||
void takeSnapshot(bool notify = true, bool includeAnimated = false, float aspectRatio = 0.0f);
|
||||
void takeSecondaryCameraSnapshot();
|
||||
|
|
|
@ -18,10 +18,10 @@
|
|||
var APP_ICON = "https://hifi-content.s3.amazonaws.com/elisalj/blocks/blocks-i.svg";
|
||||
|
||||
try {
|
||||
print("Current Interface version: " + Script.checkVersion());
|
||||
print("Current Interface version: " + Window.checkVersion());
|
||||
} catch(err) {
|
||||
print("Outdated Interface version does not support Blocks");
|
||||
APP_URL = null;
|
||||
APP_URL = "https://hifi-content.s3.amazonaws.com/elisalj/blocks/updateToBlocks.html";
|
||||
}
|
||||
|
||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||
|
|
Loading…
Reference in a new issue