We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08b598d commit 371d50cCopy full SHA for 371d50c
1 file changed
Text-File-Displayer/Project1/Program.cs
@@ -541,8 +541,8 @@ static void MenuLoad_L(object sender, EventArgs e)
541
openFileDialog1.RestoreDirectory = true;
542
if (openFileDialog1.ShowDialog() == DialogResult.OK)
543
{
544
- LoadFile(openFileDialog1.FileName);
545
File.WriteAllText(PREVIOUS_INI_NAME, openFileDialog1.FileName);
+ LoadFile(openFileDialog1.FileName);
546
}
547
548
@@ -627,6 +627,7 @@ static void LoadFile(string file)
627
628
textXUpDown.Value = 30;
629
textYUpDown.Value = 30;
630
+ File.WriteAllText(PREVIOUS_INI_NAME, "");
631
System.Windows.Forms.MessageBox.Show("Couldn't load the layout file");
632
633
//UpdateText();
0 commit comments