Skip to content

Commit

Permalink
Set default file name to config's laptop model
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparronator9999 committed Dec 9, 2024
1 parent 6e26ce9 commit 9567072
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions YAMDCC.ConfigEditor/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,12 @@ private void tsiLoadConf_Click(object sender, EventArgs e)
}

private void tsiSaveConf_Click(object sender, EventArgs e)
{
SaveConf();
}

private void SaveConf()
{
SaveFileDialog sfd = new()
{
AddExtension = true,
Filter = "YAMDCC config files|*.xml",
FileName = Config.Model.Replace(' ', '-'),
Title = "Save config",
};

Expand Down

0 comments on commit 9567072

Please sign in to comment.