File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
src/cascadia/TerminalSettingsEditor Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -421,25 +421,21 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
421
421
}
422
422
}
423
423
});
424
- if (_IsNewCommand)
425
- {
426
- // for new commands, make sure we generate a new ID every time any arg value changes
427
- actionArgsVM. WrapperValueChanged ([weakThis = get_weak ()]( const IInspectable& /* sender */ , const IInspectable& /* args */ ) {
428
- if (auto weak = weakThis. get () )
424
+ actionArgsVM. WrapperValueChanged ([weakThis = get_weak ()]( const IInspectable& /* sender */ , const IInspectable& /* args */ ) {
425
+ if ( auto weak = weakThis. get ())
426
+ {
427
+ // for new commands, make sure we generate a new ID every time any arg value changes
428
+ if (weak-> _IsNewCommand )
429
429
{
430
430
weak->_command .GenerateID ();
431
431
}
432
- });
433
- }
434
- else if (!IsUserAction ())
435
- {
436
- actionArgsVM.WrapperValueChanged ([weakThis = get_weak ()](const IInspectable& /* sender*/ , const IInspectable& /* args*/ ) {
437
- if (auto weak = weakThis.get ())
432
+ else if (!weak->IsUserAction ())
438
433
{
439
434
weak->_ReplaceCommandWithUserCopy (false );
440
435
}
441
- });
442
- }
436
+ weak->_NotifyChanges (L" DisplayName" );
437
+ }
438
+ });
443
439
}
444
440
445
441
void CommandViewModel::_ReplaceCommandWithUserCopy (bool reinitialize)
You can’t perform that action at this time.
0 commit comments