HaikuDepot: Only send package status change notifications...

...if the package status actually did change.
This commit is contained in:
Rene Gollent 2013-09-21 08:40:17 -04:00
parent 7cf0e76439
commit fdcd014b1d

View File

@ -540,8 +540,10 @@ PackageInfo::AddCategory(const CategoryRef& category)
void
PackageInfo::SetState(PackageState state)
{
fState = state;
_NotifyListeners(PKG_CHANGED_STATE);
if (fState != state) {
fState = state;
_NotifyListeners(PKG_CHANGED_STATE);
}
}