mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-01 22:47:26 -04:00
Make QtMultimedia dependency optional
This commit is contained in:
@@ -131,4 +131,11 @@ Rectangle {
|
||||
root.state = "Stopped"
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if( QtMultimedia.availableCameras.length == 0) {
|
||||
console.log("No camera available. Disable qrScannerEnabled");
|
||||
appWindow.qrScannerEnabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user