Skip to content

Commit

Permalink
Merge pull request #30 from jimmyeao/dev
Browse files Browse the repository at this point in the history
fix not all settings saving
  • Loading branch information
jimmyeao authored Feb 28, 2024
2 parents 9279ec2 + a848c30 commit a5441a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,9 @@ private async Task SaveSettingsAsync()
settings.MqttPassword = MQTTPasswordBox.Password;
settings.UseTLS = UseTLS.IsChecked ?? false;
settings.IgnoreCertificateErrors = IgnoreCert.IsChecked ?? false;
// Additional settings as needed
settings.RunMinimized = RunMinimisedCheckBox.IsChecked ?? false;
settings.RunAtWindowsBoot = RunAtWindowsBootCheckBox.IsChecked ?? false;

});

// Check if MQTT settings have changed (consider abstracting this logic into a separate method)
Expand Down
4 changes: 2 additions & 2 deletions TEAMS2HA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFramework>net7.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<AssemblyVersion>1.1.0.282</AssemblyVersion>
<FileVersion>1.1.0.282</FileVersion>
<AssemblyVersion>1.1.0.283</AssemblyVersion>
<FileVersion>1.1.0.283</FileVersion>
<ApplicationIcon>Assets\Square150x150Logo.scale-200.ico</ApplicationIcon>
<Title>Teams2HA</Title>
<PackageIcon>Square150x150Logo.scale-200.png</PackageIcon>
Expand Down

0 comments on commit a5441a6

Please sign in to comment.