| 65 | } |
| 66 | |
| 67 | bool Window_Command::IsItemEnabled(int index) { |
| 68 | if (index < 0 || index >= static_cast<int>(commands_enabled.size())) { |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | return commands_enabled[index]; |
| 73 | } |
| 74 | |
| 75 | void Window_Command::SetItemText(unsigned index, std::string_view text) { |
| 76 | if (index < commands.size()) { |
no test coverage detected