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

Commit 85fcff1

Browse files
committed
fixed close command usage on templates editor
1 parent 5748746 commit 85fcff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/MainWindow/MainWindowCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private async void Command_CloseAll()
360360
{
361361
var editors = GetAllEditorElements();
362362

363-
if (editors == null || GetCurrentEditorElement().IsTemplateEditor || editors.Length == 0 || editors.Any(x => x.ClosingPromptOpened))
363+
if (editors == null || editors.Any(x => x.IsTemplateEditor) || editors.Length == 0 || editors.Any(x => x.ClosingPromptOpened))
364364
{
365365
return;
366366
}

0 commit comments

Comments
 (0)