mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: start BT discovery a tiny bit later
This way the AppLog starts with the name and version of Subsurface-mobile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ce21c2a696
commit
c9c9a8390a
1 changed files with 6 additions and 5 deletions
|
@ -78,17 +78,18 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
alreadySaving(false),
|
alreadySaving(false),
|
||||||
m_device_data(new DCDeviceData(this))
|
m_device_data(new DCDeviceData(this))
|
||||||
{
|
{
|
||||||
#if defined(BT_SUPPORT)
|
|
||||||
// ensure that we start the BTDiscovery - this should be triggered by the export of the class
|
|
||||||
// to QML, but that doesn't seem to always work
|
|
||||||
BTDiscovery *btDiscovery = BTDiscovery::instance();
|
|
||||||
#endif
|
|
||||||
m_instance = this;
|
m_instance = this;
|
||||||
m_lastDevicePixelRatio = qApp->devicePixelRatio();
|
m_lastDevicePixelRatio = qApp->devicePixelRatio();
|
||||||
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
|
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
|
||||||
appendTextToLog("Starting " + getUserAgent());
|
appendTextToLog("Starting " + getUserAgent());
|
||||||
appendTextToLog(QStringLiteral("build with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion()));
|
appendTextToLog(QStringLiteral("build with Qt Version %1, runtime from Qt Version %2").arg(QT_VERSION_STR).arg(qVersion()));
|
||||||
setStartPageText(tr("Starting..."));
|
setStartPageText(tr("Starting..."));
|
||||||
|
|
||||||
|
#if defined(BT_SUPPORT)
|
||||||
|
// ensure that we start the BTDiscovery - this should be triggered by the export of the class
|
||||||
|
// to QML, but that doesn't seem to always work
|
||||||
|
BTDiscovery *btDiscovery = BTDiscovery::instance();
|
||||||
|
#endif
|
||||||
setShowPin(false);
|
setShowPin(false);
|
||||||
// create location manager service
|
// create location manager service
|
||||||
locationProvider = new GpsLocation(&appendTextToLogStandalone, this);
|
locationProvider = new GpsLocation(&appendTextToLogStandalone, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue