Settings keys fix
This commit is contained in:
@@ -43,20 +43,28 @@ namespace FoxTube
|
|||||||
public MainPage()
|
public MainPage()
|
||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
|
|
||||||
if(settings.Values["language"] == null)
|
if(settings.Values["language"] == null)
|
||||||
{
|
|
||||||
settings.Values.Add("language", 0);
|
settings.Values.Add("language", 0);
|
||||||
|
if (settings.Values["quality"] == null)
|
||||||
settings.Values.Add("quality", 0);
|
settings.Values.Add("quality", 0);
|
||||||
|
|
||||||
|
if (settings.Values["newVideoNotification"] == null)
|
||||||
settings.Values.Add("newVideoNotification", true);
|
settings.Values.Add("newVideoNotification", true);
|
||||||
|
if (settings.Values["newCommentNotification"] == null)
|
||||||
settings.Values.Add("newCommentNotification", true);
|
settings.Values.Add("newCommentNotification", true);
|
||||||
|
if (settings.Values["newPostNotification"] == null)
|
||||||
settings.Values.Add("newPostNotification", true);
|
settings.Values.Add("newPostNotification", true);
|
||||||
|
if (settings.Values["newmessagesNotification"] == null)
|
||||||
settings.Values.Add("newmessagesNotification", true);
|
settings.Values.Add("newmessagesNotification", true);
|
||||||
|
|
||||||
|
if (settings.Values["moblieWarning"] == null)
|
||||||
settings.Values.Add("moblieWarning", false);
|
settings.Values.Add("moblieWarning", false);
|
||||||
|
if (settings.Values["videoAutoplay"] == null)
|
||||||
settings.Values.Add("videoAutoplay", true);
|
settings.Values.Add("videoAutoplay", true);
|
||||||
|
if (settings.Values["volume"] == null)
|
||||||
settings.Values.Add("volume", 100);
|
settings.Values.Add("volume", 100);
|
||||||
}
|
|
||||||
content.Navigate(typeof(Home));
|
content.Navigate(typeof(Home));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,5 +26,11 @@ namespace FoxTube
|
|||||||
{
|
{
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Load(string url, string title,
|
||||||
|
string author, string avatarUrl)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user