Archived
1
0

Settings keys fix

This commit is contained in:
Michael Gordeev
2018-05-06 19:45:23 +03:00
parent 0dff7636fd
commit 5ee95a95a6
2 changed files with 16 additions and 2 deletions
+10 -2
View File
@@ -43,20 +43,28 @@ namespace FoxTube
public MainPage()
{
this.InitializeComponent();
if(settings.Values["language"] == null)
{
settings.Values.Add("language", 0);
if (settings.Values["quality"] == null)
settings.Values.Add("quality", 0);
if (settings.Values["newVideoNotification"] == null)
settings.Values.Add("newVideoNotification", true);
if (settings.Values["newCommentNotification"] == null)
settings.Values.Add("newCommentNotification", true);
if (settings.Values["newPostNotification"] == null)
settings.Values.Add("newPostNotification", true);
if (settings.Values["newmessagesNotification"] == null)
settings.Values.Add("newmessagesNotification", true);
if (settings.Values["moblieWarning"] == null)
settings.Values.Add("moblieWarning", false);
if (settings.Values["videoAutoplay"] == null)
settings.Values.Add("videoAutoplay", true);
if (settings.Values["volume"] == null)
settings.Values.Add("volume", 100);
}
content.Navigate(typeof(Home));
}
+6
View File
@@ -26,5 +26,11 @@ namespace FoxTube
{
this.InitializeComponent();
}
public void Load(string url, string title,
string author, string avatarUrl)
{
}
}
}