feat(ui): add status messages to update check on startup

This commit is contained in:
zarazaex69
2026-04-08 10:58:58 +03:00
parent ca5003b3e8
commit dd4a55b831
@@ -646,11 +646,15 @@ class MainActivity : HelperBaseActivity(), NavigationView.OnNavigationItemSelect
}
private fun checkForUpdatesOnStartup() {
showStatus("Проверка обновлений...")
lifecycleScope.launch {
try {
val result = UpdateCheckerManager.checkForUpdate(true)
if (result.hasUpdate) {
showStatus("Доступно обновление ${result.latestVersion}")
showUpdateAvailableDialog(result)
} else {
showStatus("Обновлений нет")
}
} catch (e: Exception) {
Log.e(AppConfig.TAG, "Failed to check for updates on startup: ${e.message}")