Skip to content

Commit 16836bd

Browse files
committed
feat: 记录历史路径
1 parent 04a6ad1 commit 16836bd

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

MaiChartManager/Config.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ public class Config
88
public bool UseAuth { get; set; } = false;
99
public string AuthUsername { get; set; } = "";
1010
public string AuthPassword { get; set; } = "";
11+
public HashSet<string> HistoryPath { get; set; } = [];
1112
}

MaiChartManager/Launcher.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MaiChartManager/Launcher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public Launcher()
2424
checkBoxLanAuth.Checked = StaticSettings.Config.UseAuth;
2525
textBoxLanAuthUser.Text = StaticSettings.Config.AuthUsername;
2626
textBoxLanAuthPass.Text = StaticSettings.Config.AuthPassword;
27+
textBox1.Items.AddRange(StaticSettings.Config.HistoryPath.ToArray());
2728
CheckStartupStatus();
2829
# if DEBUG
2930
checkBox1.Checked = true;
@@ -148,6 +149,7 @@ private void StartClicked(object sender, EventArgs e)
148149

149150
# if !DEBUG
150151
StaticSettings.Config.GamePath = textBox1.Text;
152+
StaticSettings.Config.HistoryPath.Add(textBox1.Text);
151153
StaticSettings.Config.UseAuth = checkBoxLanAuth.Checked;
152154
StaticSettings.Config.AuthUsername = textBoxLanAuthUser.Text;
153155
StaticSettings.Config.AuthPassword = textBoxLanAuthPass.Text;

0 commit comments

Comments
 (0)