| 124 | } |
| 125 | |
| 126 | std::string restoreErrorMessage(io::BackupStage stage) |
| 127 | { |
| 128 | switch (stage) { |
| 129 | case io::BackupStage::OpenArchive: |
| 130 | return i18n::t("outcome.mount"); |
| 131 | case io::BackupStage::DeleteDst: |
| 132 | return i18n::t("outcome.delete_save"); |
| 133 | case io::BackupStage::Commit: |
| 134 | return i18n::t("outcome.commit"); |
| 135 | default: |
| 136 | return i18n::t("outcome.restore_failed"); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | // A save-kind rail button: square (radius 0), filled accent when active, |
| 141 | // faint fill otherwise, with the single kind letter over the small kind label. |