Skip to content

Commit 57fc873

Browse files
committed
Fix saving opened files
1 parent 8caf240 commit 57fc873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MathInterpreter/MathTab.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static MathTab Open()
9393
if (openFile.ShowDialog() != true)
9494
return null;
9595

96-
var tab = new MathTab(Path.GetFileName(openFile.FileName)) {_filePath = openFile.FileName};
96+
var tab = new MathTab(Path.GetFileName(openFile.FileName)) {_savedBefore = true, _filePath = openFile.FileName};
9797

9898
tab._editor.Text = File.ReadAllText(openFile.FileName);
9999

0 commit comments

Comments
 (0)