MCPcopy Create free account
hub / github.com/benkuper/Chataigne / setModuleSelected

Method setModuleSelected

Source/Module/ui/ModuleChooserUI.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void ModuleChooserUI::setModuleSelected(Module * m, bool silent)
68{
69 if (m == nullptr) return;
70 if (m == CVGroupManager::getInstance()->module.get()) setSelectedId(1000);
71 else setSelectedId(ModuleManager::getInstance()->items.indexOf(m) + 1, silent ? dontSendNotification:sendNotification);
72}
73
74void ModuleChooserUI::comboBoxChanged(ComboBox *)
75{

Callers 5

setRouterMethod · 0.80
moduleListChangedMethod · 0.80
moduleListChangedMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected