Hide "QR-code" button from config import menu for Android devices without camera
This commit is contained in:
parent
3e02dfef63
commit
2b61c48303
6 changed files with 25 additions and 2 deletions
|
|
@ -206,3 +206,14 @@ void SettingsController::toggleScreenshotsEnabled(bool enable)
|
|||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SettingsController::isCameraPresent()
|
||||
{
|
||||
#if defined Q_OS_IOS
|
||||
return true;
|
||||
#elif defined Q_OS_ANDROID
|
||||
return AndroidController::instance()->isCameraPresent();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue