Archived
1
0

Toast notifications for downloads

This commit is contained in:
Michael Gordeev
2018-10-24 21:07:08 +03:00
parent dc8afa2891
commit f545edc6c1
5 changed files with 78 additions and 12 deletions
+13 -2
View File
@@ -11,9 +11,9 @@ using Windows.Storage.Pickers;
using Windows.System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
#pragma warning disable CS0252 // Possible unintended reference comparison; left hand side needs cast
namespace FoxTube.Pages
{
@@ -25,7 +25,18 @@ namespace FoxTube.Pages
public Downloads()
{
this.InitializeComponent();
stack.ItemsSource = Methods.MainPage.Agent.items;
try
{
stack.ItemsSource = Methods.MainPage.Agent.items;
}
catch { }
}
protected override void OnNavigatedFrom(NavigationEventArgs e)
{
base.OnNavigatedFrom(e);
stack.ItemsSource = null;
stack.Items.Clear();
}
/*private async void changePath_Click(object sender, RoutedEventArgs e)
+1 -1
View File
@@ -74,7 +74,7 @@ namespace FoxTube
if (settings.Values["ver"] == null)
settings.Values.Add("ver", $"{ver.Major}.{ver.Minor}");
if((string)settings.Values["ver"] == $"{ver.Major}.{ver.Minor}") //Replace for '!=' !!!
if((string)settings.Values["ver"] != $"{ver.Major}.{ver.Minor}") //Replace for '!=' !!!
{
try
{