Skip to content

Commit

Permalink
Add close on Exit
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelballantyne authored Jan 1, 2025
1 parent a030151 commit 6cc205e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ int main(int argc, char *argv[])
}
arguments.removeAt(arguments.indexOf("-p"));
}
if(arguments.contains("-c")) {
mainApp.closeOnDisconnect = true;
qInfo() << "Close on disconnect enabled!";
arguments.removeAt(arguments.indexOf("-c"));
}
}

// connect up the signals
Expand Down

0 comments on commit 6cc205e

Please sign in to comment.