This commit is contained in:
pls.153 2024-05-20 12:45:22 +02:00
parent 21bde7c8e7
commit 08a888389d

View file

@ -109,8 +109,15 @@ QVariant QT::lastPosition() {
// USB
static QT* instance() {
return QT::_this;
}
static void javaUsbDeviceAttached(JNIEnv*, jobject) { // see Java
QMetaObject::invokeMethod(QT::_this, "usbDeviceAttached");
// run on Qt thread
QMetaObject::invokeMethod(
instance(),
"usbDeviceAttached");
}
void QT::usbDeviceAttached() {