| 212 | } |
| 213 | |
| 214 | void 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 | |
| 228 | void SyncthingRecentChangesModel::handleForkAwesomeIconsChanged() |
| 229 | { |