Manually start HID devices detection after crash handler startup.

This commit is contained in:
Ghislain MARY 2026-03-31 15:48:23 +02:00
parent ae3cb29bac
commit a6974b9e90
2 changed files with 7 additions and 1 deletions

View file

@ -418,6 +418,8 @@ void App::setSelf(QSharedPointer<App>(me)) {
}, },
Qt::SingleShotConnection); Qt::SingleShotConnection);
} }
} else if (gstate == linphone::GlobalState::Off) {
CoreModel::getInstance()->getCore()->stopHidDevicesDetection();
} }
}); });
}); });
@ -495,6 +497,8 @@ void App::setSelf(QSharedPointer<App>(me)) {
}, },
Qt::SingleShotConnection); Qt::SingleShotConnection);
} }
} else if (state == linphone::GlobalState::Off) {
CoreModel::getInstance()->getCore()->stopHidDevicesDetection();
} }
}); });
}); });
@ -691,6 +695,8 @@ void App::initCore() {
// QML // QML
mEngine = new QQmlApplicationEngine(this); mEngine = new QQmlApplicationEngine(this);
assert(mEngine); assert(mEngine);
lDebug() << log().arg("Starting HID devices detection");
CoreModel::getInstance()->getCore()->startHidDevicesDetection();
// Provide `+custom` folders for custom components and `5.9` for old components. // Provide `+custom` folders for custom components and `5.9` for old components.
QStringList selectors("custom"); QStringList selectors("custom");
const QVersionNumber &version = QLibraryInfo::version(); const QVersionNumber &version = QLibraryInfo::version();

@ -1 +1 @@
Subproject commit aa0864f7b00dc48893798556ca7c6ba3e4c12e43 Subproject commit 466a74a1c208107348c7fd2612703734a4d2345a