From 1be43980223d482563d6bccdcbbf5de1121474a1 Mon Sep 17 00:00:00 2001 From: Vladyslav Date: Thu, 16 Apr 2020 19:26:21 +0300 Subject: [PATCH] Fix Download folder location Get other default folders locations same way --- Files/View Models/SettingsViewModel.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Files/View Models/SettingsViewModel.cs b/Files/View Models/SettingsViewModel.cs index aedc0396398d..b045e5ea645e 100644 --- a/Files/View Models/SettingsViewModel.cs +++ b/Files/View Models/SettingsViewModel.cs @@ -470,37 +470,37 @@ public string WinDirPath public string DesktopPath { - get => Get(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)); + get => Get(UserDataPaths.GetDefault().Desktop); set => Set(value); } public string DocumentsPath { - get => Get(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)); + get => Get(UserDataPaths.GetDefault().Documents); set => Set(value); } public string DownloadsPath { - get => Get(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @"\Downloads"); + get => Get(UserDataPaths.GetDefault().Downloads); set => Set(value); } public string PicturesPath { - get => Get(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)); + get => Get(UserDataPaths.GetDefault().Pictures); set => Set(value); } public string MusicPath { - get => Get(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)); + get => Get(UserDataPaths.GetDefault().Music); set => Set(value); } public string VideosPath { - get => Get(Environment.GetFolderPath(Environment.SpecialFolder.MyVideos)); + get => Get(UserDataPaths.GetDefault().Videos); set => Set(value); }