File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
src/cascadia/TerminalSettingsModel Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,12 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
70
70
winrt::com_ptr<implementation::ActionMap> foundParent{ nullptr };
71
71
for (const auto & parent : _parents)
72
72
{
73
- for (const auto & [_, cmd] : parent->_ActionMap )
73
+ const auto parentMap = parent->_ActionMap ;
74
+ if (parentMap.begin () != parentMap.end () && parentMap.begin ()->second .Origin () == OriginTag::InBox)
74
75
{
75
- if (cmd.Origin () != OriginTag::InBox)
76
- {
77
- // only one parent contains all the inbox actions and that parent contains only inbox actions,
78
- // so if we found a non-inbox action we can just skip to the next parent
79
- break ;
80
- }
76
+ // only one parent contains all the inbox actions and that parent contains only inbox actions,
77
+ // so if we found an inbox action we know this is the parent we are looking for
81
78
foundParent = parent;
82
- }
83
-
84
- if (foundParent)
85
- {
86
79
break ;
87
80
}
88
81
}
You can’t perform that action at this time.
0 commit comments