1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-18 09:13:17 +00:00

Improved self-update system.

This commit is contained in:
Ylian Saint-Hilaire
2022-05-24 16:52:58 -07:00
parent 3a1e8671be
commit 85657d2857
10 changed files with 167 additions and 19 deletions

View File

@@ -53,10 +53,13 @@ namespace MeshCentralRouter
if (lines[5] != "") { mainLabel.Text = lines[5]; }
}
catch (Exception) { }
checkForUpdatedCheckBox.Checked = Settings.GetRegValue("CheckForUpdates", true);
}
private void okButton_Click(object sender, EventArgs e)
{
Settings.SetRegValue("CheckForUpdates", checkForUpdatedCheckBox.Checked);
DownloadUpdate();
}
@@ -165,5 +168,9 @@ namespace MeshCentralRouter
return Result.ToString();
}
private void cancelButton_Click(object sender, EventArgs e)
{
Settings.SetRegValue("CheckForUpdates", checkForUpdatedCheckBox.Checked);
}
}
}