mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
[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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user