Skip to content

Commit

Permalink
v3.0.9: 🛠️ 整理了一些代码
Browse files Browse the repository at this point in the history
  • Loading branch information
WangHaonie committed Jan 11, 2025
1 parent efc8d1d commit 7a44b69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CEETimerCSharpWinForms/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected override void OnTrackableFormLoad()
SizeChanged += MainForm_SizeChanged;
DefaultColors = [new(Color.Red, Color.White), new(Color.Green, Color.White), new(Color.Black, Color.White), new(Color.Black, Color.White)];
SystemEvents.DisplaySettingsChanged += SystemEvents_DisplaySettingsChanged;
RefreshSettings(null, null);
RefreshSettings();

LocationWatcher = new() { Interval = 1000 };
LocationWatcher.Tick += LocationWatcher_Tick;
Expand All @@ -86,7 +86,7 @@ private void MainForm_SizeChanged(object sender, EventArgs e)
}
}

private async void RefreshSettings(object sender, EventArgs e)
private async void RefreshSettings()
{
Config.MountConfig(true);

Expand Down Expand Up @@ -294,7 +294,7 @@ private void ContextSettings_Click(object sender, EventArgs e)
UserCustomRules = CustomRules
};

FormSettings.ConfigChanged += RefreshSettings;
FormSettings.ConfigChanged += (sender,e) => RefreshSettings();
}

FormSettings.ReActivate();
Expand Down

0 comments on commit 7a44b69

Please sign in to comment.