fix(cpn): Ignore 'Quit' event in main window on MacOS if simulator running (#2874)

Prevents app crashing on exit while the simulator is open.
This commit is contained in:
philmoz
2022-12-20 21:15:35 +10:00
committed by GitHub
parent 4841f0673c
commit af040c9e2e
3 changed files with 25 additions and 0 deletions
+5
View File
@@ -122,6 +122,11 @@ namespace Helpers
void startSimulation(QWidget * parent, RadioData & radioData, int modelIdx);
#ifdef __APPLE__
// Flag when simulator is running
bool isSimulatorRunning();
#endif
// Format a pixmap to fit on the current firmware
QPixmap makePixMap(const QImage & image);