From 3a2f17c613d812cbe3bab4be51a5a35ef262596c Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 22 Jun 2025 16:20:50 +0200 Subject: refactor: remove git commit hash verification from version check - remove remote commit hash tracking from version check logic - simplify version check by removing tag info parsing - update UI to remove commit hash mismatch warning - clean up related code and remove unused fields --- src/m_ver_check/UpdateTab.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/m_ver_check/UpdateTab.cpp') diff --git a/src/m_ver_check/UpdateTab.cpp b/src/m_ver_check/UpdateTab.cpp index b28ccf3..9295f6d 100644 --- a/src/m_ver_check/UpdateTab.cpp +++ b/src/m_ver_check/UpdateTab.cpp @@ -134,9 +134,6 @@ void UpdateTab::slot_show_version_status() { GFModuleRetrieveRTValueOrDefaultBool( GFGetModuleID(), DUP("version.current_version_publish_in_remote"), 0); - auto is_git_commit_hash_mismatch = GFModuleRetrieveRTValueOrDefaultBool( - GFGetModuleID(), DUP("version.git_commit_hash_mismatch"), 0); - auto is_current_commit_hash_publish_in_remote = GFModuleRetrieveRTValueOrDefaultBool( GFGetModuleID(), DUP("version.current_commit_hash_publish_in_remote"), @@ -181,19 +178,6 @@ void UpdateTab::slot_show_version_status() { ""); upgrade_label_->show(); upgrade_info_box_->show(); - } else if (is_git_commit_hash_mismatch != 0 && GFIsCheckReleaseCommitHash()) { - upgrade_label_->setText( - "
" + - tr("The current version's commit hash does not match the official " - "release. This may indicate a modified or unofficial build.") + - "
" + tr("Click") + - " " + - tr("here") + " " + - tr("to verify your installation or download the official version.") + - "
"); - upgrade_label_->show(); - upgrade_info_box_->show(); } else if (is_current_commit_hash_publish_in_remote == 0) { upgrade_label_->setText( "
" + -- cgit v1.2.3