diff options
author | saturneric <[email protected]> | 2024-07-24 14:02:49 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-24 14:02:49 +0000 |
commit | 46b7ecec8f5787d3a4b14a2fd2ec4f324a041345 (patch) | |
tree | 0704d13add7c2b1957b832f42a817df827a39b9a /src/m_ver_check | |
parent | fix: metadata is not translated (diff) | |
download | Modules-46b7ecec8f5787d3a4b14a2fd2ec4f324a041345.tar.gz Modules-46b7ecec8f5787d3a4b14a2fd2ec4f324a041345.zip |
feat: move in GnuPGTab
Diffstat (limited to 'src/m_ver_check')
-rw-r--r-- | src/m_ver_check/UpdateTab.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/m_ver_check/UpdateTab.cpp b/src/m_ver_check/UpdateTab.cpp index ea38780..e01d49c 100644 --- a/src/m_ver_check/UpdateTab.cpp +++ b/src/m_ver_check/UpdateTab.cpp @@ -28,6 +28,7 @@ #include "UpdateTab.h" +#include "GFModuleCommonUtils.hpp" #include "GFSDKBasic.h" #include "GFSDKLog.h" #include "GFSDKModule.h" @@ -82,7 +83,7 @@ UpdateTab::UpdateTab(QWidget* parent) : QWidget(parent) { void UpdateTab::showEvent(QShowEvent* event) { QWidget::showEvent(event); - GFModuleLogDebug("loading version loading info from rt"); + MLogDebug("loading version loading info from rt"); auto is_loading_done = GFModuleRetrieveRTValueOrDefaultBool( GFGetModuleID(), GFModuleStrDup("version.loading_done"), 0); @@ -102,14 +103,14 @@ void UpdateTab::showEvent(QShowEvent* event) { } void UpdateTab::slot_show_version_status() { - GFModuleLogDebug("loading version info from rt"); + MLogDebug("loading version info from rt"); this->pb_->setHidden(true); auto is_loading_done = GFModuleRetrieveRTValueOrDefaultBool( GFGetModuleID(), GFModuleStrDup("version.loading_done"), 0); if (is_loading_done == 0) { - GFModuleLogDebug("version info loading haven't been done yet."); + MLogDebug("version info loading haven't been done yet."); return; } @@ -123,9 +124,9 @@ void UpdateTab::slot_show_version_status() { auto is_current_version_released = GFModuleRetrieveRTValueOrDefaultBool( GFGetModuleID(), GFModuleStrDup("version.current_version_released"), 0); - QString const latest_version = GFModuleRetrieveRTValueOrDefault( + QString const latest_version = UDUP(GFModuleRetrieveRTValueOrDefault( GFGetModuleID(), GFModuleStrDup("version.latest_version"), - GFModuleStrDup("")); + GFModuleStrDup(""))); latest_version_label_->setText("<center><b>" + tr("Latest Version From Github") + ": " + |