| 997 | } |
| 998 | |
| 999 | void SyncthingFileModel::concludeApplyingChanges(const QStringList &successfulDeletions, const QStringList &failedDeletions) |
| 1000 | { |
| 1001 | for (const auto &file : successfulDeletions) { |
| 1002 | m_stagedLocalFileDeletions.remove(file); |
| 1003 | } |
| 1004 | if (failedDeletions.isEmpty()) { |
| 1005 | emit notification(QStringLiteral("info"), tr("Ignore patterns have been changed.")); |
| 1006 | } else { |
| 1007 | emit notification(QStringLiteral("error"), |
| 1008 | tr("Ignore patterns have been changed but the following local files could not be deleted:\n") + failedDeletions.join(QChar('\n'))); |
| 1009 | } |
| 1010 | emit hasStagedChangesChanged(hasStagedChanges()); |
| 1011 | } |
| 1012 | |
| 1013 | void SyncthingFileModel::setSelectionModeEnabled(bool selectionModeEnabled) |
| 1014 | { |
nothing calls this directly
no outgoing calls
no test coverage detected