mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-06-30 14:56:52 +00:00
Prevent double printing app list via cli
This commit is contained in:
parent
47452371db
commit
1dbdcb5279
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user