mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-05 17:14:23 -04:00
Update Ukraine support links
This commit is contained in:
parent
3dc3e3fa01
commit
5b1b720503
2 changed files with 10 additions and 10 deletions
|
@ -236,8 +236,8 @@ public abstract class ExportCommandBase : TokenCommandBase
|
||||||
{
|
{
|
||||||
// War in Ukraine message
|
// War in Ukraine message
|
||||||
console.Output.WriteLine("========================================================================");
|
console.Output.WriteLine("========================================================================");
|
||||||
console.Output.WriteLine("|| Ukraine is at war! Support my country in its fight for freedom~ ||");
|
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("|| Learn more: https://tyrrrz.me/ukraine ||");
|
||||||
console.Output.WriteLine("========================================================================");
|
console.Output.WriteLine("========================================================================");
|
||||||
console.Output.WriteLine("");
|
console.Output.WriteLine("");
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,9 @@ public class RootViewModel : Screen, IHandle<NotificationMessage>, IDisposable
|
||||||
private readonly DialogManager _dialogManager;
|
private readonly DialogManager _dialogManager;
|
||||||
private readonly SettingsService _settingsService;
|
private readonly SettingsService _settingsService;
|
||||||
private readonly UpdateService _updateService;
|
private readonly UpdateService _updateService;
|
||||||
|
|
||||||
public SnackbarMessageQueue Notifications { get; } = new(TimeSpan.FromSeconds(5));
|
public SnackbarMessageQueue Notifications { get; } = new(TimeSpan.FromSeconds(5));
|
||||||
|
|
||||||
public DashboardViewModel Dashboard { get; }
|
public DashboardViewModel Dashboard { get; }
|
||||||
|
|
||||||
public RootViewModel(
|
public RootViewModel(
|
||||||
|
@ -33,9 +33,9 @@ public class RootViewModel : Screen, IHandle<NotificationMessage>, IDisposable
|
||||||
_dialogManager = dialogManager;
|
_dialogManager = dialogManager;
|
||||||
_settingsService = settingsService;
|
_settingsService = settingsService;
|
||||||
_updateService = updateService;
|
_updateService = updateService;
|
||||||
|
|
||||||
eventAggregator.Subscribe(this);
|
eventAggregator.Subscribe(this);
|
||||||
|
|
||||||
Dashboard = _viewModelFactory.CreateDashboardViewModel();
|
Dashboard = _viewModelFactory.CreateDashboardViewModel();
|
||||||
|
|
||||||
DisplayName = $"{App.Name} v{App.VersionString}";
|
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)
|
if (await _dialogManager.ShowDialogAsync(dialog) == true)
|
||||||
{
|
{
|
||||||
ProcessEx.StartShellExecute("https://tyrrrz.me");
|
ProcessEx.StartShellExecute("https://tyrrrz.me/ukraine?source=discordchatexporter");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async ValueTask CheckForUpdatesAsync()
|
private async ValueTask CheckForUpdatesAsync()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -84,7 +84,7 @@ Press LEARN MORE to find ways that you can help.".Trim(),
|
||||||
Notifications.Enqueue("Failed to perform application update");
|
Notifications.Enqueue("Failed to perform application update");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async void OnViewFullyLoaded()
|
public async void OnViewFullyLoaded()
|
||||||
{
|
{
|
||||||
await ShowWarInUkraineMessageAsync();
|
await ShowWarInUkraineMessageAsync();
|
||||||
|
@ -115,7 +115,7 @@ Press LEARN MORE to find ways that you can help.".Trim(),
|
||||||
_updateService.FinalizeUpdate(false);
|
_updateService.FinalizeUpdate(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Handle(NotificationMessage message) =>
|
public void Handle(NotificationMessage message) =>
|
||||||
Notifications.Enqueue(message.Text);
|
Notifications.Enqueue(message.Text);
|
||||||
|
|
||||||
public void Dispose() => Notifications.Dispose();
|
public void Dispose() => Notifications.Dispose();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue