Profiles Editor: make sure we notify the IconPath property (#19223)

There were instances where changing the icon or resetting it did not
result in the text box changing.

Regressed in #19143
This commit is contained in:
Dustin L. Howett
2025-08-06 18:09:47 -05:00
committed by GitHub
parent 6fb70eb510
commit 6c2f38c732
2 changed files with 2 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
L"UsingImageIcon",
L"LocalizedIcon",
L"IconPreview",
L"IconPath",
L"EvaluatedIcon");
}
else if (viewModelProperty == L"CurrentBuiltInIcon")

View File

@@ -98,7 +98,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
void IconPath(const winrt::hstring& path)
{
Icon(Model::MediaResourceHelper::FromString(path));
_NotifyChanges(L"Icon");
_NotifyChanges(L"Icon", L"IconPath");
}
// starting directory