Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Dec 26, 2024
1 parent 71ce8b8 commit 0a8c8b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private async Task CheckForUpdates()
{
if (await AppStoreInfo.Current.IsUsingLatestVersionAsync() is false)
{
var newVersion = AppStoreInfo.Current.GetLatestVersionAsync();
var newVersion = await AppStoreInfo.Current.GetLatestVersionAsync();
var releaseNotes = (await AppStoreInfo.Current.GetInformationAsync()).ReleaseNotes;

if (await storageService.GetItem($"{newVersion}_UpdateFromVersionIsRequested") is not "true")
Expand All @@ -120,7 +120,7 @@ private async Task CheckForUpdates()

// It's an opportune moment to request an update. (:
// https://github.com/oscoreio/Maui.AppStoreInfo
if (await App.Current!.Windows[0].Page!.DisplayAlert(localizer[nameof(AppStrings.NewVersionIsAvailable)], localizer[nameof(AppStrings.UpdateToNewVersion), releaseNotes], localizer[nameof(AppStrings.Yes)], localizer[nameof(AppStrings.No)]) is true)
if (await App.Current!.Windows[0].Page!.DisplayAlert(localizer[nameof(AppStrings.NewVersionIsAvailable), newVersion], localizer[nameof(AppStrings.UpdateToNewVersion), releaseNotes], localizer[nameof(AppStrings.Yes)], localizer[nameof(AppStrings.No)]) is true)
{
await AppStoreInfo.Current.OpenApplicationInStoreAsync();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@
<value>بروز رسانی</value>
</data>
<data name="NewVersionIsAvailable" xml:space="preserve">
<value>نسخه جدید در دسترس است</value>
<value>نسخه ورژن {0} در دسترس است</value>
</data>
<data name="UpdateToNewVersion" xml:space="preserve">
<value>آیا می خواهید به نسخه جدید بروید؟ {0}</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@
<value>Update</value>
</data>
<data name="NewVersionIsAvailable" xml:space="preserve">
<value>Nieuwe versie is beschikbaar</value>
<value>Nieuwe versie {0} is beschikbaar</value>
</data>
<data name="UpdateToNewVersion" xml:space="preserve">
<value>Wilt u updaten naar de nieuwe versie? {0}</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@
<value>Update</value>
</data>
<data name="NewVersionIsAvailable" xml:space="preserve">
<value>New version is available</value>
<value>New version {0} is available</value>
</data>
<data name="UpdateToNewVersion" xml:space="preserve">
<value>Would you like to update to the new version? {0}</value>
Expand Down

0 comments on commit 0a8c8b5

Please sign in to comment.