diff --git a/DiscordChatExporter.Gui/Bootstrapper.cs b/DiscordChatExporter.Gui/Bootstrapper.cs index b638706a..fa850f85 100644 --- a/DiscordChatExporter.Gui/Bootstrapper.cs +++ b/DiscordChatExporter.Gui/Bootstrapper.cs @@ -31,12 +31,12 @@ public class Bootstrapper : Bootstrapper } #if !DEBUG - protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e) + protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs args) { - base.OnUnhandledException(e); + base.OnUnhandledException(args); MessageBox.Show( - e.Exception.ToString(), + args.Exception.ToString(), "Error occured", MessageBoxButton.OK, MessageBoxImage.Error diff --git a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs index f7d317be..1d8b36a7 100644 --- a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs @@ -38,8 +38,6 @@ public class DashboardViewModel : PropertyChangedBase public string? Token { get; set; } - public bool IsTokenSet => !string.IsNullOrWhiteSpace(Token); - private IReadOnlyDictionary>? ChannelsByGuild { get; set; } public IReadOnlyList? AvailableGuilds => ChannelsByGuild?.Keys.ToArray(); diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml b/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml index b4429238..27e95bc8 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml @@ -6,6 +6,7 @@ xmlns:behaviors="clr-namespace:DiscordChatExporter.Gui.Behaviors" xmlns:componentModel="clr-namespace:System.ComponentModel;assembly=WindowsBase" xmlns:components="clr-namespace:DiscordChatExporter.Gui.ViewModels.Components" + xmlns:controls="clr-namespace:DiscordChatExporter.Gui.Views.Controls" xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:data="clr-namespace:DiscordChatExporter.Core.Discord.Data;assembly=DiscordChatExporter.Core" @@ -75,38 +76,29 @@ Kind="Key" /> - - - - - + +