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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user