fix: serial-port-added
should respect filters (#41621)
fix: serial-port-added should respect filters
This commit is contained in:
parent
433d6c33d8
commit
66dec24e32
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ api::Session* SerialChooserController::GetSession() {
|
|||
|
||||
void SerialChooserController::OnPortAdded(
|
||||
const device::mojom::SerialPortInfo& port) {
|
||||
if (!FilterMatchesAny(port))
|
||||
return;
|
||||
|
||||
ports_.push_back(port.Clone());
|
||||
api::Session* session = GetSession();
|
||||
if (session) {
|
||||
|
|
Loading…
Reference in a new issue