frontend: Fix manifest commit hash comparison

This commit is contained in:
Dennis Sädtler
2025-02-05 19:44:17 +01:00
committed by Lain
parent 70dc224a2e
commit 73725c27d3
+1 -1
View File
@@ -84,7 +84,7 @@ try {
/* Test or nightly builds may not have a (valid) version number,
* so compare commit hashes instead. */
updateVer = manifest.commit.substr(0, 8);
*updatesAvailable = !currentVersion || !manifest.commit.compare(0, strlen(OBS_COMMIT), OBS_COMMIT);
*updatesAvailable = !currentVersion || manifest.commit.compare(0, strlen(OBS_COMMIT), OBS_COMMIT) != 0;
}
return true;