Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit d61f0b4

Browse files
committed
Update WindowTitle when closing an unsaved window
1 parent 166010a commit d61f0b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

UI/Components/EditorElement.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ public async void Close(bool ForcedToSave = false, bool CheckSavings = true)
532532
}
533533
}
534534
Parent = null; //to prevent a ring depency which disables the GC from work
535+
Program.MainWindow.UpdateWindowTitle();
535536
}
536537

537538
private void editor_TextChanged(object sender, EventArgs e)

UI/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ private void EditorObjectBrowserGridRow_WidthChanged(object sender, EventArgs e)
343343
}
344344
}
345345

346-
private void UpdateWindowTitle()
346+
public void UpdateWindowTitle()
347347
{
348348
EditorElement ee = GetCurrentEditorElement();
349349
string outString;

0 commit comments

Comments
 (0)