Skip to content

Commit 958c87b

Browse files
committed
Move Changelog filtering to UI
1 parent 80fee0a commit 958c87b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/updateinfo.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ class BINARYNINJAUIAPI UpdateInfoFetcher : public QObject
2525
QString author;
2626
QString commit;
2727
QString body;
28-
ChangelogEntryItem(const QString& author = "", const QString& commit = "", const QString& body = "")
29-
: author(author), commit(commit), body(body) {};
28+
bool isHidden = false;
29+
ChangelogEntryItem(const QString& author = "", const QString& commit = "", const QString& body = "", const bool isHidden = false)
30+
: author(author), commit(commit), body(body), isHidden(isHidden) {};
3031
/// In-struct cache for wrapped text
3132
mutable QString bodyWrapCache;
3233
};
@@ -65,6 +66,7 @@ class BINARYNINJAUIAPI UpdateInfoFetcher : public QObject
6566
void startFetch();
6667
const std::vector<Channel>& getChannels();
6768
const Channel* getActiveChannel();
69+
std::vector<ChangelogEntry> getFilteredChangelog();
6870
signals:
6971
void fetchCompleted(const FetchError& error);
7072
};

0 commit comments

Comments
 (0)