Skip to content

Commit

Permalink
midi: delay the MIDI device enumeration a bit more since it seems nee…
Browse files Browse the repository at this point in the history
…ded on macOS
  • Loading branch information
jcelerier committed Dec 11, 2024
1 parent e4b9c5e commit 7d340bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ class MidiEnumerator : public Device::DeviceEnumerator
if constexpr(Type == ossia::net::midi::midi_info::Type::Input)
{
cb.input_added = [this](const libremidi::input_port& p) {
ossia::qt::run_async(
QTimer::singleShot(1,
this, [this, s = to_settings(m_api, p)] { deviceAdded(s.name, s); });
};
}
else
{
cb.output_added = [this](const libremidi::output_port& p) {
ossia::qt::run_async(
QTimer::singleShot(1,
this, [this, s = to_settings(m_api, p)] { deviceAdded(s.name, s); });
};
}
Expand Down

0 comments on commit 7d340bc

Please sign in to comment.