aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/struct
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-20 18:07:02 +0000
committerSaturneric <[email protected]>2022-05-20 18:07:02 +0000
commita62eed1038f618ec294fbfefe8ef5c8427147a33 (patch)
tree34e07f6029b25987aa46378ede668b9a7b4f755c /src/ui/struct
parentfeat: handle application's exceptions and crash (diff)
downloadGpgFrontend-a62eed1038f618ec294fbfefe8ef5c8427147a33.tar.gz
GpgFrontend-a62eed1038f618ec294fbfefe8ef5c8427147a33.zip
refactor: change version checking to task
Diffstat (limited to 'src/ui/struct')
-rw-r--r--src/ui/struct/SoftwareVersion.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/struct/SoftwareVersion.h b/src/ui/struct/SoftwareVersion.h
index 04300053..da93f8c6 100644
--- a/src/ui/struct/SoftwareVersion.h
+++ b/src/ui/struct/SoftwareVersion.h
@@ -54,6 +54,14 @@ struct SoftwareVersion {
* @return true
* @return false
*/
+ [[nodiscard]] bool InfoVaild() const { return load_info_done; }
+
+ /**
+ * @brief
+ *
+ * @return true
+ * @return false
+ */
[[nodiscard]] bool NeedUpgrade() const {
return load_info_done && !latest_prerelease && !latest_draft &&
current_version < latest_version;