HaikuDepot: notify work status from main window

* Update the work status view with package state changes from
  MainWindow instead of PackageListView, because PackageListView
  does not always show all packages that are going to be installed
  (e.g. dependencies that are not shown when a search filter is
  active).

* Fixes the bug that prevented pending/download status to show up
  for dependencies when filters are used.
This commit is contained in:
Julian Harnath 2017-12-27 15:08:27 +00:00
parent 8d4324628d
commit 4e6fbe0320
2 changed files with 4 additions and 6 deletions

View File

@ -509,6 +509,9 @@ MainWindow::MessageReceived(BMessage* message)
fFeaturedPackagesView->AddPackage(ref);
}
}
if (!fSinglePackageMode && (changes & PKG_CHANGED_STATE) != 0)
fWorkStatusView->PackageStatusChanged(ref);
}
break;
}

View File

@ -843,13 +843,8 @@ PackageListView::MessageReceived(BMessage* message)
row->UpdateSummary();
if ((changes & PKG_CHANGED_RATINGS) != 0)
row->UpdateRating();
if ((changes & PKG_CHANGED_STATE) != 0) {
if ((changes & PKG_CHANGED_STATE) != 0)
row->UpdateState();
if (fWorkStatusView != NULL) {
fWorkStatusView->PackageStatusChanged(
row->Package());
}
}
if ((changes & PKG_CHANGED_SIZE) != 0)
row->UpdateSize();
if ((changes & PKG_CHANGED_ICON) != 0)