diff options
| author | Mason Reed <mason@vector35.com> | 2024-12-11 14:17:49 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-12-30 18:52:44 -0500 |
| commit | 958c87b41aa12d15d85e9649cf6542efd97cf9e7 (patch) | |
| tree | 1bda6c1abd7804656beddac9774bf8d83fea3eb3 | |
| parent | 80fee0a3a32568d042de3ec8ce7eb38c5bbc7140 (diff) | |
Move Changelog filtering to UI
| -rw-r--r-- | ui/updateinfo.h | 6 |
1 files 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<Channel>& getChannels(); const Channel* getActiveChannel(); + std::vector<ChangelogEntry> getFilteredChangelog(); signals: void fetchCompleted(const FetchError& error); };
\ No newline at end of file |
