From 7add7d4c5512822c11f3343dd467a46705f4449e Mon Sep 17 00:00:00 2001 From: spiros Date: Tue, 18 Jun 2024 20:53:18 +0300 Subject: [PATCH] Don't update the UI if the output is empty --- src/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ca20dec..8666729 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -171,7 +171,9 @@ void MainWindow::scanDevices() deviceOutputs.append(jsonFragment); } - updateUI(); + if (!allDevicesOutput.isEmpty()) { + updateUI(); + } } void MainWindow::updateUI()