MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / DeviceSelectionChanged

Method DeviceSelectionChanged

plugins/midi/macro-condition-midi.cpp:180–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void MacroConditionMidiEdit::DeviceSelectionChanged(const MidiDevice &device)
181{
182 if (_loading || !_entryData) {
183 return;
184 }
185
186 if (_currentlyListening) {
187 ToggleListen();
188 }
189
190 {
191 auto lock = LockContext();
192 _entryData->SetDevice(device);
193 }
194 emit HeaderInfoChanged(
195 QString::fromStdString(_entryData->GetShortDesc()));
196}
197
198void MacroConditionMidiEdit::MidiMessageChanged(const MidiMessage &message)
199{

Callers

nothing calls this directly

Calls 3

LockContextFunction · 0.85
SetDeviceMethod · 0.45
GetShortDescMethod · 0.45

Tested by

no test coverage detected