HaikuDepot: Only send package status change notifications...
...if the package status actually did change.
This commit is contained in:
parent
7cf0e76439
commit
fdcd014b1d
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user