Skip to content

Commit

Permalink
Correct missing beaconChanged and researcherChanged signals in resear…
Browse files Browse the repository at this point in the history
…cher model
  • Loading branch information
jamescowens committed Jan 28, 2025
1 parent a60a842 commit 93a6959
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/qt/researcher/researchermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,11 +713,15 @@ void ResearcherModel::updateBeacon()

if (!cpid) {
commitBeacon(BeaconStatus::NO_CPID);
emit beaconChanged();
emit researcherChanged();
return;
}

if (outOfSync()) {
commitBeacon(BeaconStatus::UNKNOWN);
emit beaconChanged();
emit researcherChanged();
return;
}

Expand Down Expand Up @@ -762,6 +766,9 @@ void ResearcherModel::updateBeacon()
commitBeacon(BeaconStatus::ACTIVE, beacon, pending_beacon);
}
}

emit beaconChanged();
emit researcherChanged();
}

BeaconStatus ResearcherModel::advertiseBeacon()
Expand Down Expand Up @@ -815,5 +822,6 @@ void ResearcherModel::commitBeacon(

if (changed) {
emit beaconChanged();
emit researcherChanged();
}
}

0 comments on commit 93a6959

Please sign in to comment.