mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-20 21:18:23 +00:00
Let user disable auto-updates
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
{
|
||||
public interface ISettingsViewModel
|
||||
{
|
||||
bool IsAutoUpdateEnabled { get; set; }
|
||||
|
||||
string DateFormat { get; set; }
|
||||
int MessageGroupLimit { get; set; }
|
||||
}
|
||||
|
||||
@@ -8,6 +8,12 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||
{
|
||||
private readonly ISettingsService _settingsService;
|
||||
|
||||
public bool IsAutoUpdateEnabled
|
||||
{
|
||||
get => _settingsService.IsAutoUpdateEnabled;
|
||||
set => _settingsService.IsAutoUpdateEnabled = value;
|
||||
}
|
||||
|
||||
public string DateFormat
|
||||
{
|
||||
get => _settingsService.DateFormat;
|
||||
|
||||
@@ -21,6 +21,23 @@ UserControl "DiscordChatExporter.Gui.Views.SettingsDialog" {
|
||||
Text: bind MessageGroupLimit
|
||||
}
|
||||
|
||||
// Auto-update
|
||||
DockPanel {
|
||||
LastChildFill: false
|
||||
|
||||
TextBlock {
|
||||
Margin: [16, 8, 16, 8]
|
||||
DockPanel.Dock: Left
|
||||
Text: "Auto-updates"
|
||||
}
|
||||
|
||||
ToggleButton {
|
||||
Margin: [16, 8, 16, 8]
|
||||
DockPanel.Dock: Right
|
||||
IsChecked: bind IsAutoUpdateEnabled
|
||||
}
|
||||
}
|
||||
|
||||
// Save
|
||||
Button {
|
||||
Margin: 8
|
||||
|
||||
Reference in New Issue
Block a user