diff --git a/DiscordChatExporter.Gui/Services/SettingsService.cs b/DiscordChatExporter.Gui/Services/SettingsService.cs
index 19958a4d..3cabcb33 100644
--- a/DiscordChatExporter.Gui/Services/SettingsService.cs
+++ b/DiscordChatExporter.Gui/Services/SettingsService.cs
@@ -19,8 +19,6 @@ public partial class SettingsService : SettingsManager
public int ParallelLimit { get; set; } = 1;
- public bool ShouldReuseAssets { get; set; }
-
public Version? LastAppVersion { get; set; }
public string? LastToken { get; set; }
@@ -35,6 +33,8 @@ public partial class SettingsService : SettingsManager
public bool LastShouldDownloadAssets { get; set; }
+ public bool LastShouldReuseAssets { get; set; }
+
public SettingsService()
{
Configuration.StorageSpace = StorageSpace.Instance;
diff --git a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs
index 9c994046..e7ec4d7b 100644
--- a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs
+++ b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs
@@ -193,7 +193,7 @@ public class DashboardViewModel : PropertyChangedBase
dialog.MessageFilter,
dialog.ShouldFormatMarkdown,
dialog.ShouldDownloadAssets,
- _settingsService.ShouldReuseAssets,
+ dialog.ShouldReuseAssets,
_settingsService.DateFormat
);
diff --git a/DiscordChatExporter.Gui/ViewModels/Dialogs/ExportSetupViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Dialogs/ExportSetupViewModel.cs
index a30d51ef..c5180a8b 100644
--- a/DiscordChatExporter.Gui/ViewModels/Dialogs/ExportSetupViewModel.cs
+++ b/DiscordChatExporter.Gui/ViewModels/Dialogs/ExportSetupViewModel.cs
@@ -63,6 +63,8 @@ public class ExportSetupViewModel : DialogScreen
public bool ShouldDownloadAssets { get; set; }
+ public bool ShouldReuseAssets { get; set; }
+
public bool IsAdvancedSectionDisplayed { get; set; }
public ExportSetupViewModel(DialogManager dialogManager, SettingsService settingsService)
@@ -76,6 +78,7 @@ public class ExportSetupViewModel : DialogScreen
MessageFilterValue = _settingsService.LastMessageFilterValue;
ShouldFormatMarkdown = _settingsService.LastShouldFormatMarkdown;
ShouldDownloadAssets = _settingsService.LastShouldDownloadAssets;
+ ShouldReuseAssets = _settingsService.LastShouldReuseAssets;
// Show the "advanced options" section by default if any
// of the advanced options are set to non-default values.
@@ -134,6 +137,7 @@ public class ExportSetupViewModel : DialogScreen
_settingsService.LastMessageFilterValue = MessageFilterValue;
_settingsService.LastShouldFormatMarkdown = ShouldFormatMarkdown;
_settingsService.LastShouldDownloadAssets = ShouldDownloadAssets;
+ _settingsService.LastShouldReuseAssets = ShouldReuseAssets;
Close(true);
}
diff --git a/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs
index 67fffc00..82492e36 100644
--- a/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs
+++ b/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs
@@ -38,12 +38,6 @@ public class SettingsViewModel : DialogScreen
set => _settingsService.ParallelLimit = Math.Clamp(value, 1, 10);
}
- public bool ShouldReuseAssets
- {
- get => _settingsService.ShouldReuseAssets;
- set => _settingsService.ShouldReuseAssets = value;
- }
-
public SettingsViewModel(SettingsService settingsService) =>
_settingsService = settingsService;
}
\ No newline at end of file
diff --git a/DiscordChatExporter.Gui/Views/Dialogs/ExportSetupView.xaml b/DiscordChatExporter.Gui/Views/Dialogs/ExportSetupView.xaml
index 98e91504..2d9003d2 100644
--- a/DiscordChatExporter.Gui/Views/Dialogs/ExportSetupView.xaml
+++ b/DiscordChatExporter.Gui/Views/Dialogs/ExportSetupView.xaml
@@ -267,6 +267,24 @@
VerticalAlignment="Center"
IsChecked="{Binding ShouldDownloadAssets}" />
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml b/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml
index 20159486..18eb0328 100644
--- a/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml
+++ b/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml
@@ -82,22 +82,6 @@
IsChecked="{Binding IsTokenPersisted}" />
-
-
-
-
-
-