checkForUpdates method
Fetches the application updates via the UpgradeWorker.
Implementation
Future<void> checkForUpdates() async {
checkingForUpdates.value = true;
try {
final hasUpdates = await _upgradeWorker.fetchUpdates(force: true);
if (!hasUpdates) {
MessagePopup.alert(
'label_no_updates_are_available_title'.l10n,
description: [
TextSpan(text: 'label_no_updates_are_available_subtitle'.l10n),
],
);
}
} finally {
checkingForUpdates.value = false;
}
}