MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / restoreErrorMessage

Function restoreErrorMessage

switch/source/MainScreen.cpp:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 1

updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected