diff --git a/src/tools/ecode/commandpalette.cpp b/src/tools/ecode/commandpalette.cpp index 01abc6193..912d51e48 100644 --- a/src/tools/ecode/commandpalette.cpp +++ b/src/tools/ecode/commandpalette.cpp @@ -7,6 +7,9 @@ CommandPalette::build( const std::vector& commandList, const EE::UI::KeyBindings& keybindings ) { std::vector> ret; for ( const auto& cmd : commandList ) { + if ( std::find_if( ret.begin(), ret.end(), + [&cmd]( const auto& other ) { return other[2] == cmd; } ) != ret.end() ) + continue; std::string cmdName( cmd ); String::capitalizeInPlace( cmdName ); String::replaceAll( cmdName, "-", " " );