| 31 | CommandPalette::CommandPalette( const std::shared_ptr<ThreadPool>& pool ) : mPool( pool ) {} |
| 32 | |
| 33 | void CommandPalette::setCommandPalette( const std::vector<std::string>& commandList, |
| 34 | const UI::KeyBindings& keybindings ) { |
| 35 | mCommandPalette = build( commandList, keybindings ); |
| 36 | mBaseModel = CommandPaletteModel::create( 3, mCommandPalette ); |
| 37 | if ( !mCurModel ) |
| 38 | mCurModel = mBaseModel; |
| 39 | } |
| 40 | |
| 41 | const std::vector<std::vector<std::string>>& CommandPalette::getCommandPalette() const { |
| 42 | return mCommandPalette; |
no outgoing calls
no test coverage detected