HaikuDepot: Only send package status change notifications...
...if the package status actually did change.
This commit is contained in:
@@ -540,9 +540,11 @@ PackageInfo::AddCategory(const CategoryRef& category)
|
|||||||
void
|
void
|
||||||
PackageInfo::SetState(PackageState state)
|
PackageInfo::SetState(PackageState state)
|
||||||
{
|
{
|
||||||
|
if (fState != state) {
|
||||||
fState = state;
|
fState = state;
|
||||||
_NotifyListeners(PKG_CHANGED_STATE);
|
_NotifyListeners(PKG_CHANGED_STATE);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|||||||
Reference in New Issue
Block a user