aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/data_struct/SoftwareVersion.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/data_struct/SoftwareVersion.h')
-rw-r--r--src/ui/data_struct/SoftwareVersion.h8
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