mirror of
https://github.com/microsoft/terminal.git
synced 2026-02-04 01:04:40 +00:00
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:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user