From 958c87b41aa12d15d85e9649cf6542efd97cf9e7 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 11 Dec 2024 14:17:49 -0500 Subject: Move Changelog filtering to UI --- ui/updateinfo.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/updateinfo.h b/ui/updateinfo.h index 55102870..a3bf0d89 100644 --- a/ui/updateinfo.h +++ b/ui/updateinfo.h @@ -25,8 +25,9 @@ public: QString author; QString commit; QString body; - ChangelogEntryItem(const QString& author = "", const QString& commit = "", const QString& body = "") - : author(author), commit(commit), body(body) {}; + bool isHidden = false; + ChangelogEntryItem(const QString& author = "", const QString& commit = "", const QString& body = "", const bool isHidden = false) + : author(author), commit(commit), body(body), isHidden(isHidden) {}; /// In-struct cache for wrapped text mutable QString bodyWrapCache; }; @@ -65,6 +66,7 @@ public: void startFetch(); const std::vector& getChannels(); const Channel* getActiveChannel(); + std::vector getFilteredChangelog(); signals: void fetchCompleted(const FetchError& error); }; \ No newline at end of file -- cgit v1.3.1