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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user