Commit ae3a4cb3 authored by Axelander's avatar Axelander

Fixed missing restore of App settings

parent 0fd91de4
......@@ -12,6 +12,7 @@ using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using SonicStreamer.Common.System;
namespace SonicStreamer
{
......@@ -77,7 +78,7 @@ namespace SonicStreamer
if (previousExecutionState == ApplicationExecutionState.Terminated)
{
var loginVm = Current.Resources["LoginVM"] as LoginViewModel;
var loginVm = Current.Resources[Constants.ViewModelLogin] as LoginViewModel;
if (loginVm != null)
{
loginVm.RestoreData();
......
......@@ -61,13 +61,17 @@ namespace SonicStreamer.ViewModels
private const string Twitter = "http://twitter.com/SonicStreamer";
private const string Policy = "http://axelander.net/?page_id=41";
public ApplicationSettingsViewModel()
{
RestoreData();
}
public async Task LoadDataAsync()
{
var packageVersion = Windows.ApplicationModel.Package.Current.Id.Version;
Version = string.Format("{0}.{1} (Build {2})", packageVersion.Major.ToString(),
packageVersion.Minor.ToString(), packageVersion.Build.ToString());
RestoreData();
await GetTrackCacheSize();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment