Skip to content

Commit

Permalink
Fixed a possible bug with wallpapers
Browse files Browse the repository at this point in the history
  • Loading branch information
FrayxRulez committed Jun 10, 2017
1 parent 87f7ee5 commit a20affd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ private async void DoneExecute()
var result = await FileUtils.CreateTempFileAsync("wallpaper.jpg");
await file.CopyAndReplaceAsync(result);
}
else
{
return;
}
}

ApplicationSettings.Current.SelectedBackground = wallpaper.Id;
Expand All @@ -182,6 +186,10 @@ private async void DoneExecute()
var result = await FileUtils.CreateTempFileAsync("wallpaper.jpg");
await file.MoveAndReplaceAsync(result);
}
else
{
return;
}

ApplicationSettings.Current.SelectedBackground = -1;
ApplicationSettings.Current.SelectedColor = 0;
Expand Down

0 comments on commit a20affd

Please sign in to comment.