aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-mobile-helper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-19 06:37:13 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-27 11:52:48 -0700
commitea7a7c6b24c749491ee56f99cad118cd4bc7aac7 (patch)
tree0bc0d0da32c70d3d3b028e89043241d1d3d62f80 /subsurface-mobile-helper.cpp
parent36749b28d90e3200614175afe87dddf2dc81ae75 (diff)
downloadsubsurface-ea7a7c6b24c749491ee56f99cad118cd4bc7aac7.tar.gz
QML UI: add supported dive computers to log file
In a more compact format than before. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-mobile-helper.cpp')
-rw-r--r--subsurface-mobile-helper.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp
index 9bff8b680..ac971104d 100644
--- a/subsurface-mobile-helper.cpp
+++ b/subsurface-mobile-helper.cpp
@@ -100,10 +100,6 @@ void run_ui()
ctxt->setContextProperty("connectionListModel", &connectionListModel);
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
- // call again to be able to log
- // FIXME - this is redundant - but otherwise they don't end up in the AppLog
- fill_computer_list();
-
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
qqWindowObject = engine.rootObjects().value(0);
if (!qqWindowObject) {
@@ -117,6 +113,9 @@ void run_ui()
QScreen *screen = qml_window->screen();
QObject::connect(qml_window, &QQuickWindow::screenChanged, QMLManager::instance(), &QMLManager::screenChanged);
QMLManager *manager = QMLManager::instance();
+ // now that the log file is initialized...
+ show_computer_list();
+
manager->setDevicePixelRatio(qml_window->devicePixelRatio(), qml_window->screen());
manager->dlSortModel = sortModel;
manager->screenChanged(screen);