added updating mechanic

This commit is contained in:
fourtf
2018-06-21 22:02:35 +02:00
parent 2f91e3097a
commit e204dfdb17
10 changed files with 117 additions and 10 deletions
+11 -1
View File
@@ -59,10 +59,20 @@ LastRunCrashDialog::LastRunCrashDialog()
case singletons::UpdateManager::NoUpdateAvailable: {
update->setText("No update abailable.");
} break;
case singletons::UpdateManager::Error: {
case singletons::UpdateManager::SearchFailed: {
update->setText("Error while searching for update.\nEither the update service is "
"temporarily down or there is an issue with your installation.");
} break;
case singletons::UpdateManager::Downloading: {
update->setText(
"Downloading the update. Chatterino will close once the download is done.");
} break;
case singletons::UpdateManager::DownloadFailed: {
update->setText("Download failed.");
} break;
case singletons::UpdateManager::WriteFileFailed: {
update->setText("Writing the update file to the hard drive failed.");
} break;
}
};