Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
修正命名问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky8955555 committed Mar 27, 2021
1 parent 1628f65 commit bc0f0ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Forms/WindowMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Forms/WindowMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void LoadComboBoxExtraFileSortingWay()

private async void LoadAutoCheckUpdate()
{
bool isAutoCheckUpdate = Configurations.UpdateCheckingConfig.Content.isAutoCheckUpdate;
bool isAutoCheckUpdate = Configurations.UpdateCheckingConfig.Content.IsAutoCheckUpdate;
checkBoxAutoCheckUpdate.Checked = isAutoCheckUpdate;
if (isAutoCheckUpdate)
{
Expand Down Expand Up @@ -247,9 +247,9 @@ protected override void WndProc(ref Message m)
base.WndProc(ref m);
}

private void checkBoxAutoCheckUpdate_ValueChanged(object sender, bool value)
private void CheckBoxAutoCheckUpdate_ValueChanged(object sender, bool value)
{
Configurations.UpdateCheckingConfig.Content = Configurations.UpdateCheckingConfig.Content with { isAutoCheckUpdate = checkBoxAutoCheckUpdate.Checked };
Configurations.UpdateCheckingConfig.Content = Configurations.UpdateCheckingConfig.Content with { IsAutoCheckUpdate = checkBoxAutoCheckUpdate.Checked };
Configurations.UpdateCheckingConfig.Save();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/UpdateCheckingConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
/// <summary>
/// 表示自动检查更新设置
/// </summary>
public record UpdateCheckingConfig(bool isAutoCheckUpdate);
public record UpdateCheckingConfig(bool IsAutoCheckUpdate);
}

0 comments on commit bc0f0ab

Please sign in to comment.