We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a905ff commit d61044cCopy full SHA for d61044c
src/Files.App/ViewModels/ShellViewModel.cs
@@ -1833,11 +1833,19 @@ public void CheckForBackgroundImage()
1833
}
1834
else
1835
{
1836
- FolderBackgroundImageSource = new BitmapImage
+ try
1837
1838
- UriSource = new Uri(backgroundImage, UriKind.RelativeOrAbsolute),
1839
- CreateOptions = BitmapCreateOptions.IgnoreImageCache
1840
- };
+ FolderBackgroundImageSource = new BitmapImage
+ {
+ UriSource = new Uri(backgroundImage, UriKind.RelativeOrAbsolute),
1841
+ CreateOptions = BitmapCreateOptions.IgnoreImageCache
1842
+ };
1843
+ }
1844
+ catch (Exception ex)
1845
1846
+ // Handle errors with setting the URI
1847
+ App.Logger.LogWarning(ex, ex.Message);
1848
1849
1850
1851
// Opacity
0 commit comments