[AFV] Ref T730, request mic.access on MacOS for launcher

* needed to start the mic.access depending applications GUI/core
* see https://discordapp.com/channels/539048679160676382/567983892791951374/634806582013591603
This commit is contained in:
Klaus Basan
2019-10-19 00:03:09 +02:00
parent 88ff7ff758
commit 57909d97dc
3 changed files with 27 additions and 1 deletions

View File

@@ -19,6 +19,11 @@
#include "blackcore/coremodeenums.h"
#include "blackmisc/db/artifact.h"
#include "blackmisc/identifiable.h"
#ifdef Q_OS_MAC
#include "blackmisc/macos/microphoneaccess.h"
#endif
#include <QDialog>
#include <QTimer>
#include <QScopedPointer>
@@ -95,6 +100,9 @@ private:
QScopedPointer<BlackGui::Components::CConfigurationWizard> m_wizard;
QScopedPointer<BlackGui::Components::CTextEditDialog> m_textEditDialog;
BlackMisc::CData<BlackCore::Data::TLauncherSetup> m_setup { this }; //!< setup, i.e. last user selection
#ifdef Q_OS_MAC
BlackMisc::CMacOSMicrophoneAccess m_micAccess;
#endif
QString m_executable;
QStringList m_executableArgs;
@@ -200,6 +208,9 @@ private:
//! Show the FSX/P3D config simulator directories
void showSimulatorConfigDirs();
//! Request MacOS microphone request
void requestMacMicrophoneAccess();
//! Command line
static QString toCmdLine(const QString &exe, const QStringList &exeArgs);
};