Only alert user at most once per new release

This commit is contained in:
GriffinR
2024-02-07 15:35:11 -05:00
parent e76729ce62
commit 73b5c0501d
8 changed files with 54 additions and 45 deletions

View File

@@ -78,9 +78,9 @@ void Scripting::populateGlobalObject(MainWindow *mainWindow) {
// Get version numbers
QJSValue version = instance->engine->newObject();
version.setProperty("major", PORYMAP_VERSION_MAJOR);
version.setProperty("minor", PORYMAP_VERSION_MINOR);
version.setProperty("patch", PORYMAP_VERSION_PATCH);
version.setProperty("major", porymapVersion.majorVersion());
version.setProperty("minor", porymapVersion.minorVersion());
version.setProperty("patch", porymapVersion.microVersion());
constants.setProperty("version", version);
// Get basic tileset information