From f1c094ac14ff1e16b24b64d84af68ee85898a1fd Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Mon, 28 Aug 2023 21:09:42 +0300 Subject: [PATCH] Implicitly enable threads if archived threads are enabled in GUI --- .../ViewModels/Dialogs/SettingsViewModel.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs index 90a5b918..2014d877 100644 --- a/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs @@ -35,7 +35,14 @@ public class SettingsViewModel : DialogScreen public bool ShouldShowArchivedThreads { get => _settingsService.ShouldShowArchivedThreads; - set => _settingsService.ShouldShowArchivedThreads = value; + set + { + _settingsService.ShouldShowArchivedThreads = value; + + // Enabling archived threads implicitly enables threads + if (value) + ShouldShowThreads = true; + } } public string DateFormat