diff options
author | Saturneric <[email protected]> | 2022-05-20 18:07:02 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-05-20 18:07:02 +0000 |
commit | a62eed1038f618ec294fbfefe8ef5c8427147a33 (patch) | |
tree | 34e07f6029b25987aa46378ede668b9a7b4f755c /src/ui/struct/SoftwareVersion.h | |
parent | feat: handle application's exceptions and crash (diff) | |
download | GpgFrontend-a62eed1038f618ec294fbfefe8ef5c8427147a33.tar.gz GpgFrontend-a62eed1038f618ec294fbfefe8ef5c8427147a33.zip |
refactor: change version checking to task
Diffstat (limited to 'src/ui/struct/SoftwareVersion.h')
-rw-r--r-- | src/ui/struct/SoftwareVersion.h | 8 |
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; |