From 1dbdcb5279b3c2bce756e6eff3b97d3f12a38092 Mon Sep 17 00:00:00 2001 From: FrogTheFrog Date: Sun, 27 Apr 2025 14:04:21 +0300 Subject: [PATCH] Prevent double printing app list via cli --- app/cli/listapps.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/cli/listapps.cpp b/app/cli/listapps.cpp index a5837430..29f966d3 100644 --- a/app/cli/listapps.cpp +++ b/app/cli/listapps.cpp @@ -18,6 +18,7 @@ enum State { StateSeekComputer, StateListApp, StateSeekApp, + StateSeekEnded, StateFailure, }; @@ -107,6 +108,7 @@ public: // Occurs when a computer is updated case Event::ComputerUpdated: if (m_State == StateSeekApp) { + m_State = StateSeekEnded; m_Arguments.isPrintCSV() ? printAppsCSV(m_Computer->appList) : printApps(m_Computer->appList); QCoreApplication::exit(0);