From ef14eb08c965650a39b8c24badc9e082fea7bcf7 Mon Sep 17 00:00:00 2001 From: redPanther Date: Mon, 9 Jan 2017 22:41:44 +0100 Subject: [PATCH] fix state of autoselect (#361) --- libsrc/hyperion/Hyperion.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsrc/hyperion/Hyperion.cpp b/libsrc/hyperion/Hyperion.cpp index 76a29198..5416d987 100644 --- a/libsrc/hyperion/Hyperion.cpp +++ b/libsrc/hyperion/Hyperion.cpp @@ -691,6 +691,10 @@ void Hyperion::clear(int priority) if (_muxer.hasPriority(priority)) { _muxer.clearInput(priority); + if (!_sourceAutoSelectEnabled && _currentSourcePriority == priority ) + { + setSourceAutoSelectEnabled(true); + } // update leds if necessary if (priority < _muxer.getCurrentPriority()) @@ -707,6 +711,7 @@ void Hyperion::clear(int priority) void Hyperion::clearall() { _muxer.clearAll(); + setSourceAutoSelectEnabled(true); // update leds update();