Fixed broken settings ui

Settings UI checkboxes weren't being set properly. This fixes that issue.
This commit is contained in:
Terry MacDonald 2021-09-24 22:18:12 +12:00
parent 26506392bb
commit 9531dc717a
2 changed files with 4 additions and 4 deletions

View File

@ -965,7 +965,7 @@ namespace DisplayMagician {
AutoUpdater.ParseUpdateInfoEvent += AutoUpdaterOnParseUpdateInfoEvent;
AutoUpdater.RunUpdateAsAdmin = true;
AutoUpdater.HttpUserAgent = "DisplayMagician AutoUpdater";
if (Program.AppProgramSettings.UpgradeToPreReleases)
if (Program.AppProgramSettings.UpgradeToPreReleases == false)
{
AutoUpdater.Start("http://displaymagician.littlebitbig.com/update/update_2.0.json");
}

View File

@ -39,7 +39,7 @@ namespace DisplayMagician.UIForms
private void SettingsForm_Load(object sender, EventArgs e)
{
// start displaymagician when computer starts
if (Program.AppProgramSettings.StartOnBootUp)
if (Program.AppProgramSettings.StartOnBootUp == true)
{
cb_start_on_boot.Checked = true;
logger.Info($"SettingsForm/SettingsForm_Load: AppProgramSettings StartOnBootUp set to true");
@ -51,7 +51,7 @@ namespace DisplayMagician.UIForms
}
// setup minimise on start
if (Program.AppProgramSettings.MinimiseOnStart)
if (Program.AppProgramSettings.MinimiseOnStart == true)
{
cb_minimise_notification_area.Checked = true;
logger.Info($"SettingsForm/SettingsForm_Load: AppProgramSettings MinimiseOnStart set to true");
@ -63,7 +63,7 @@ namespace DisplayMagician.UIForms
}
// start upgrade settings
if (Program.AppProgramSettings.UpgradeToPreReleases)
if (Program.AppProgramSettings.UpgradeToPreReleases == true)
{
cb_upgrade_prerelease.Checked = true;
logger.Info($"SettingsForm/SettingsForm_Load: AppProgramSettings UpgradeToPreReleases set to true");