Fix update popup showing for same version - add version comparison checks

This commit is contained in:
chasem-dev
2026-01-22 10:36:18 -05:00
parent d7a904c641
commit ce052add0d
3 changed files with 55 additions and 12 deletions

View File

@@ -335,7 +335,12 @@ class ClientUpdateManager {
async checkForUpdatesOnDemand() {
try {
const updateInfo = await window.electronAPI.checkForUpdates();
if (updateInfo.updateAvailable) {
// Double-check that versions are actually different before showing popup
if (updateInfo.updateAvailable &&
updateInfo.newVersion &&
updateInfo.currentVersion &&
updateInfo.newVersion !== updateInfo.currentVersion) {
this.showUpdatePopup(updateInfo);
}
return updateInfo;