From 5b1b7205037662bb28dc5e541f0950586d4b8a22 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Tue, 1 Nov 2022 22:35:40 +0200 Subject: [PATCH] Update Ukraine support links --- .../Commands/Base/ExportCommandBase.cs | 4 ++-- .../ViewModels/RootViewModel.cs | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs index 56b3931..7390169 100644 --- a/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs +++ b/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs @@ -236,8 +236,8 @@ public abstract class ExportCommandBase : TokenCommandBase { // War in Ukraine message console.Output.WriteLine("========================================================================"); - console.Output.WriteLine("|| Ukraine is at war! Support my country in its fight for freedom~ ||"); - console.Output.WriteLine("|| Learn more on my website: https://tyrrrz.me ||"); + console.Output.WriteLine("|| Ukraine is at war! Support my country in its fight for freedom ||"); + console.Output.WriteLine("|| Learn more: https://tyrrrz.me/ukraine ||"); console.Output.WriteLine("========================================================================"); console.Output.WriteLine(""); diff --git a/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs b/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs index 3f338b1..d765765 100644 --- a/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/RootViewModel.cs @@ -17,9 +17,9 @@ public class RootViewModel : Screen, IHandle, IDisposable private readonly DialogManager _dialogManager; private readonly SettingsService _settingsService; private readonly UpdateService _updateService; - + public SnackbarMessageQueue Notifications { get; } = new(TimeSpan.FromSeconds(5)); - + public DashboardViewModel Dashboard { get; } public RootViewModel( @@ -33,9 +33,9 @@ public class RootViewModel : Screen, IHandle, IDisposable _dialogManager = dialogManager; _settingsService = settingsService; _updateService = updateService; - + eventAggregator.Subscribe(this); - + Dashboard = _viewModelFactory.CreateDashboardViewModel(); DisplayName = $"{App.Name} v{App.VersionString}"; @@ -54,10 +54,10 @@ Press LEARN MORE to find ways that you can help.".Trim(), if (await _dialogManager.ShowDialogAsync(dialog) == true) { - ProcessEx.StartShellExecute("https://tyrrrz.me"); + ProcessEx.StartShellExecute("https://tyrrrz.me/ukraine?source=discordchatexporter"); } } - + private async ValueTask CheckForUpdatesAsync() { try @@ -84,7 +84,7 @@ Press LEARN MORE to find ways that you can help.".Trim(), Notifications.Enqueue("Failed to perform application update"); } } - + public async void OnViewFullyLoaded() { await ShowWarInUkraineMessageAsync(); @@ -115,7 +115,7 @@ Press LEARN MORE to find ways that you can help.".Trim(), _updateService.FinalizeUpdate(false); } - public void Handle(NotificationMessage message) => + public void Handle(NotificationMessage message) => Notifications.Enqueue(message.Text); public void Dispose() => Notifications.Dispose();