diff --git a/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw b/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw
index 6d25d00..df4bd97 100644
--- a/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw
+++ b/VDownload.Core/VDownload.Core.Strings/Strings/en-US/SettingsViewResources.resw
@@ -162,6 +162,18 @@
Video extension
+
+ Delete task's temporary files when an error occurs
+
+
+ Temporary files location
+
+
+ Browse
+
+
+ Temporary files
+
Twitch
diff --git a/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs b/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs
index 9666315..6766e4e 100644
--- a/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs
+++ b/VDownload.Core/VDownload.Core.ViewModels/Settings/SettingsViewModel.cs
@@ -76,6 +76,18 @@ namespace VDownload.Core.ViewModels.Settings
set => SetProperty(_settingsService.Data.Common.Tasks.DefaultOutputDirectory, value, _settingsService.Data.Common.Tasks, (u, n) => u.DefaultOutputDirectory = n);
}
+ public string TempDirectory
+ {
+ get => _settingsService.Data.Common.Temp.Directory;
+ set => SetProperty(_settingsService.Data.Common.Temp.Directory, value, _settingsService.Data.Common.Temp, (u, n) => u.Directory = n);
+ }
+
+ public bool TempDeleteOnFail
+ {
+ get => _settingsService.Data.Common.Temp.DeleteOnError;
+ set => SetProperty(_settingsService.Data.Common.Temp.DeleteOnError, value, _settingsService.Data.Common.Temp, (u, n) => u.DeleteOnError = n);
+ }
+
public bool TwitchVodPassiveTrimming
{
get => _settingsService.Data.Twitch.Vod.PassiveTrimming;
@@ -143,6 +155,16 @@ namespace VDownload.Core.ViewModels.Settings
}
}
+ [RelayCommand]
+ public async Task BrowseTempDirectory()
+ {
+ string? newDirectory = await _storagePickerService.OpenDirectory();
+ if (newDirectory is not null)
+ {
+ this.TempDirectory = newDirectory;
+ }
+ }
+
#endregion
diff --git a/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml b/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml
index b9de1bd..e83c10a 100644
--- a/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml
+++ b/VDownload.Core/VDownload.Core.Views/Settings/SettingsView.xaml
@@ -27,6 +27,7 @@
FontWeight="SemiBold"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
/Assets/SettingsView/TasksRunningTasksLight.png
/Assets/SettingsView/TasksFilenameTemplateLight.png
/Assets/SettingsView/TasksOutputDirectoryLight.png
+ /Assets/SettingsView/TempDirectoryLight.png
+ /Assets/SettingsView/TempDeleteOnFailLight.png
/Assets/SettingsView/SearchingPlaylistCountDark.png
@@ -16,6 +18,8 @@
/Assets/SettingsView/TasksRunningTasksDark.png
/Assets/SettingsView/TasksFilenameTemplateDark.png
/Assets/SettingsView/TasksOutputDirectoryDark.png
+ /Assets/SettingsView/TempDirectoryDark.png
+ /Assets/SettingsView/TempDeleteOnFailDark.png
diff --git a/VDownload/VDownload.csproj b/VDownload/VDownload.csproj
index e6cb600..59fcf65 100644
--- a/VDownload/VDownload.csproj
+++ b/VDownload/VDownload.csproj
@@ -222,6 +222,18 @@
Always
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+