Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Seng-Jik committed Feb 7, 2021
1 parent a07a3da commit 16046f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions KoKoViewer/DownloadHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ public static async void Download(KoKo.Post post)
client.Headers.Set(System.Net.HttpRequestHeader.UserAgent, KoKo.Utils.UserAgent);

var toast = ToastProgress(post);
client.DownloadProgressChanged += (ooo, eee) =>
client.DownloadProgressChanged += async (ooo, eee) =>
{
MainPage.Get().Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
await MainPage.Get().Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
toast.Data.Values["progressValue"] = ((double)eee.BytesReceived / (double)eee.TotalBytesToReceive).ToString();
notifier.Update(toast.Data, toast.Tag);
}).AsTask().Wait();
});
};

client.DownloadDataCompleted += async (ooo2, eee2) =>
Expand Down
2 changes: 1 addition & 1 deletion KoKoViewer/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Identity
Name="609b4b8f-a84f-4111-b119-af0006ce93d6"
Publisher="CN=KoKo"
Version="0.2.1.0" />
Version="0.2.2.0" />

<mp:PhoneIdentity PhoneProductId="609b4b8f-a84f-4111-b119-af0006ce93d6" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down

0 comments on commit 16046f1

Please sign in to comment.