diff options
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; |