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:
parent
8d4324628d
commit
4e6fbe0320
@ -509,6 +509,9 @@ MainWindow::MessageReceived(BMessage* message)
|
|||||||
fFeaturedPackagesView->AddPackage(ref);
|
fFeaturedPackagesView->AddPackage(ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!fSinglePackageMode && (changes & PKG_CHANGED_STATE) != 0)
|
||||||
|
fWorkStatusView->PackageStatusChanged(ref);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -843,13 +843,8 @@ PackageListView::MessageReceived(BMessage* message)
|
|||||||
row->UpdateSummary();
|
row->UpdateSummary();
|
||||||
if ((changes & PKG_CHANGED_RATINGS) != 0)
|
if ((changes & PKG_CHANGED_RATINGS) != 0)
|
||||||
row->UpdateRating();
|
row->UpdateRating();
|
||||||
if ((changes & PKG_CHANGED_STATE) != 0) {
|
if ((changes & PKG_CHANGED_STATE) != 0)
|
||||||
row->UpdateState();
|
row->UpdateState();
|
||||||
if (fWorkStatusView != NULL) {
|
|
||||||
fWorkStatusView->PackageStatusChanged(
|
|
||||||
row->Package());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ((changes & PKG_CHANGED_SIZE) != 0)
|
if ((changes & PKG_CHANGED_SIZE) != 0)
|
||||||
row->UpdateSize();
|
row->UpdateSize();
|
||||||
if ((changes & PKG_CHANGED_ICON) != 0)
|
if ((changes & PKG_CHANGED_ICON) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user