1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Qt: Tiny improvements to Cam/Mic permissions

This commit is contained in:
Megamouse 2024-09-23 23:20:58 +02:00
parent c4282e63fb
commit feedc183a4
3 changed files with 4 additions and 4 deletions

View File

@ -231,7 +231,7 @@ void camera_settings_dialog::handle_settings_change(int index)
}
#if QT_CONFIG(permissions)
QCameraPermission permission;
const QCameraPermission permission;
switch (qApp->checkPermission(permission))
{
case Qt::PermissionStatus::Undetermined:

View File

@ -112,7 +112,7 @@ extern void check_microphone_permissions()
#if QT_CONFIG(permissions)
Emu.BlockingCallFromMainThread([]()
{
QMicrophonePermission permission;
const QMicrophonePermission permission;
switch (qApp->checkPermission(permission))
{
case Qt::PermissionStatus::Undetermined:

View File

@ -186,12 +186,12 @@ void qt_camera_handler::start_camera()
}
#if QT_CONFIG(permissions)
QCameraPermission permission;
const QCameraPermission permission;
switch (qApp->checkPermission(permission))
{
case Qt::PermissionStatus::Undetermined:
camera_log.notice("Requesting camera permission");
qApp->requestPermission(permission, [this]()
qApp->requestPermission(permission, this, [this]()
{
start_camera();
});