diff options
author | Saturneric <[email protected]> | 2022-01-04 10:49:11 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-04 10:49:11 +0000 |
commit | f297a701bbcfa5f0586cc02af29a4e9af281910c (patch) | |
tree | 00d869b86e967a780f90e51d30a85be3d236a230 /src/ui/data_struct/SoftwareVersion.h | |
parent | <fix>(ui): improve ui. (diff) | |
download | GpgFrontend-f297a701bbcfa5f0586cc02af29a4e9af281910c.tar.gz GpgFrontend-f297a701bbcfa5f0586cc02af29a4e9af281910c.zip |
<fix, refactor>(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.
Diffstat (limited to 'src/ui/data_struct/SoftwareVersion.h')
-rw-r--r-- | src/ui/data_struct/SoftwareVersion.h | 8 |
1 files changed, 7 insertions, 1 deletions
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 |