diff --git a/DiscordChatExporter.Core/Utils/Extensions/BinaryExtensions.cs b/DiscordChatExporter.Core/Utils/Extensions/BinaryExtensions.cs
index 434a2a7..86efab0 100644
--- a/DiscordChatExporter.Core/Utils/Extensions/BinaryExtensions.cs
+++ b/DiscordChatExporter.Core/Utils/Extensions/BinaryExtensions.cs
@@ -8,8 +8,8 @@ public static class BinaryExtensions
{
var buffer = new StringBuilder(2 * data.Length);
- foreach (var t in data)
- buffer.Append(t.ToString("X2"));
+ foreach (var b in data)
+ buffer.Append(b.ToString("X2"));
return buffer.ToString();
}
diff --git a/DiscordChatExporter.Gui/Services/SettingsService.cs b/DiscordChatExporter.Gui/Services/SettingsService.cs
index 8b8a519..79cf78e 100644
--- a/DiscordChatExporter.Gui/Services/SettingsService.cs
+++ b/DiscordChatExporter.Gui/Services/SettingsService.cs
@@ -46,10 +46,13 @@ public partial class SettingsService : SettingsBase
public override void Save()
{
// Clear the token if it's not supposed to be persisted
+ var lastToken = LastToken;
if (!IsTokenPersisted)
LastToken = null;
base.Save();
+
+ LastToken = lastToken;
}
}
diff --git a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs
index 1d8b36a..c8e20f1 100644
--- a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs
+++ b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs
@@ -65,8 +65,15 @@ public class DashboardViewModel : PropertyChangedBase
_progressMuxer = Progress.CreateMuxer().WithAutoReset();
- this.Bind(o => o.IsBusy, (_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate));
- Progress.Bind(o => o.Current, (_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate));
+ this.Bind(
+ o => o.IsBusy,
+ (_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate)
+ );
+
+ Progress.Bind(
+ o => o.Current,
+ (_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate)
+ );
}
public void OnViewLoaded()
diff --git a/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml b/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml
index b00d551..232a9e0 100644
--- a/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml
+++ b/DiscordChatExporter.Gui/Views/Dialogs/SettingsView.xaml
@@ -19,7 +19,7 @@
@@ -71,7 +71,7 @@
Margin="16,8"
Background="Transparent"
LastChildFill="False"
- ToolTip="Save last used token in a file so that it can be persisted between sessions">
+ ToolTip="Save the last used token to a file so that it can be persisted between sessions">
-
+