From f297a701bbcfa5f0586cc02af29a4e9af281910c Mon Sep 17 00:00:00 2001 From: Saturneric Date: Tue, 4 Jan 2022 18:49:11 +0800 Subject: (core, ui): fixed known bugs for v2.0.4-beta.1. 1. longer expire date for keygen. 2. version system improved and fixed. 3. include ui text not translated. 4. improve ui. --- src/ui/data_struct/SoftwareVersion.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ui/data_struct/SoftwareVersion.h') diff --git a/src/ui/data_struct/SoftwareVersion.h b/src/ui/data_struct/SoftwareVersion.h index 942f22ce..be646b71 100644 --- a/src/ui/data_struct/SoftwareVersion.h +++ b/src/ui/data_struct/SoftwareVersion.h @@ -36,6 +36,7 @@ struct SoftwareVersion { bool current_prerelease = false; bool current_draft = false; bool load_info_done = false; + bool current_version_found = false; std::string publish_date; std::string release_note; @@ -45,7 +46,12 @@ struct SoftwareVersion { } [[nodiscard]] bool VersionWithDrawn() const { - return load_info_done && current_prerelease && !current_draft; + return load_info_done && !current_version_found && current_prerelease && + !current_draft; + } + + [[nodiscard]] bool CurrentVersionReleased() const { + return load_info_done && current_version_found; } }; } // namespace GpgFrontend::UI -- cgit v1.2.3