Skip to content

Commit

Permalink
Update profile shortcut based on profiles defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleTanPY committed Aug 19, 2020
1 parent 20b7fe4 commit 8c347ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cascadia/TerminalApp/TerminalPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ namespace winrt::TerminalApp::implementation
const auto& profile = _settings->GetProfiles()[profileIndex];
auto profileMenuItem = WUX::Controls::MenuFlyoutItem{};

// add the keyboard shortcuts for the first 9 profiles
if (profileIndex < 9)
// add the keyboard shortcuts based on the number of profiles defined
if (profileIndex < profileCount)
{
// Look for a keychord that is bound to the equivalent
// NewTab(ProfileIndex=N) action
Expand Down

0 comments on commit 8c347ac

Please sign in to comment.