Console1: another attempt to fix uncaught exeptions
This commit is contained in:
parent
85d9e333c9
commit
61ec873481
@ -583,7 +583,11 @@ Console1::map_mute ()
|
|||||||
DEBUG_TRACE (DEBUG::Console1, "Console1::map_mute ...\n");
|
DEBUG_TRACE (DEBUG::Console1, "Console1::map_mute ...\n");
|
||||||
if (_current_stripable) {
|
if (_current_stripable) {
|
||||||
if (_current_stripable->mute_control ()->muted ()) {
|
if (_current_stripable->mute_control ()->muted ()) {
|
||||||
|
try {
|
||||||
get_button (swap_solo_mute ? SOLO : MUTE)->set_led_state (true);
|
get_button (swap_solo_mute ? SOLO : MUTE)->set_led_state (true);
|
||||||
|
} catch (ControlNotFoundException const&) {
|
||||||
|
DEBUG_TRACE (DEBUG::Console1, "solo/mute button not found\n");
|
||||||
|
}
|
||||||
} else if (_current_stripable->mute_control ()->muted_by_others_soloing () ||
|
} else if (_current_stripable->mute_control ()->muted_by_others_soloing () ||
|
||||||
_current_stripable->mute_control ()->muted_by_masters ()) {
|
_current_stripable->mute_control ()->muted_by_masters ()) {
|
||||||
|
|
||||||
|
@ -894,15 +894,23 @@ Console1::map_stripable_state ()
|
|||||||
void
|
void
|
||||||
Console1::stop_blinking (ControllerID id)
|
Console1::stop_blinking (ControllerID id)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
blinkers.remove (id);
|
blinkers.remove (id);
|
||||||
get_button (id)->set_led_state (false);
|
get_button (id)->set_led_state (false);
|
||||||
|
} catch (ControlNotFoundException const&) {
|
||||||
|
DEBUG_TRACE (DEBUG::Console1, "Button to stop blinking not found ...\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Console1::start_blinking (ControllerID id)
|
Console1::start_blinking (ControllerID id)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
blinkers.push_back (id);
|
blinkers.push_back (id);
|
||||||
get_button (id)->set_led_state (true);
|
get_button (id)->set_led_state (true);
|
||||||
|
} catch (ControlNotFoundException const&) {
|
||||||
|
DEBUG_TRACE (DEBUG::Console1, "Button to start blinking not found ...\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user