diff --git a/src/cascadia/TerminalSettingsEditor/ActionsViewModel.cpp b/src/cascadia/TerminalSettingsEditor/ActionsViewModel.cpp index 48f21b543c..f05664b35b 100644 --- a/src/cascadia/TerminalSettingsEditor/ActionsViewModel.cpp +++ b/src/cascadia/TerminalSettingsEditor/ActionsViewModel.cpp @@ -363,6 +363,8 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation ActionArgsVM(*actionArgsVM); if (!_command.HasName()) { + // Invalidate the cache to make the getter recompute the display name for the "action name" field + _cachedDisplayName.clear(); _NotifyChanges(L"DisplayName"); } }