MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / handleStatusChanged

Method handleStatusChanged

syncthingmodel/syncthingrecentchangesmodel.cpp:214–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void SyncthingRecentChangesModel::handleStatusChanged(SyncthingStatus status)
215{
216 // clear history when re-connecting
217 // note: This model is independent of changes to the current configuration (it is about the past and not
218 // the current state) so the re-connect event is used here instead of handleConfigInvalidated()
219 // and handleNewConfigAvailable() as usual.
220 if (status != SyncthingStatus::Reconnecting) {
221 return;
222 }
223 beginResetModel();
224 m_changes.clear();
225 endResetModel();
226}
227
228void SyncthingRecentChangesModel::handleForkAwesomeIconsChanged()
229{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected