PackageInfoView: Update on changelog changes

Also re-order the bitfield test such that each sub-view is only
updated once per package changed message.
This commit is contained in:
Stephan Aßmus 2015-09-26 01:43:25 +02:00
parent 8533039abf
commit 16f524c59b

View File

@ -1415,18 +1415,20 @@ PackageInfoView::MessageReceived(BMessage* message)
if ((changes & PKG_CHANGED_SUMMARY) != 0
|| (changes & PKG_CHANGED_DESCRIPTION) != 0
|| (changes & PKG_CHANGED_SCREENSHOTS) != 0) {
|| (changes & PKG_CHANGED_SCREENSHOTS) != 0
|| (changes & PKG_CHANGED_TITLE) != 0
|| (changes & PKG_CHANGED_RATINGS) != 0
|| (changes & PKG_CHANGED_STATE) != 0
|| (changes & PKG_CHANGED_CHANGELOG) != 0) {
fPagesView->SetPackage(package, false);
}
if ((changes & PKG_CHANGED_TITLE) != 0
|| (changes & PKG_CHANGED_RATINGS) != 0) {
fPagesView->SetPackage(package, false);
fTitleView->SetPackage(*package.Get());
}
if ((changes & PKG_CHANGED_STATE) != 0) {
fPagesView->SetPackage(package, false);
fPackageActionView->SetPackage(*package.Get());
}