Commit eb2eb786 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk

update: ensure that version update dialog shows up when mainview is loaded

Change-Id: I310be96a8c085fd1da6f444c7d85e4eb06326f5f
parent e64a9e7e
......@@ -30,6 +30,7 @@ import QtGraphicalEffects 1.14
import net.jami.Models 1.0
import net.jami.Adapters 1.0
import net.jami.Enums 1.0
import net.jami.Helpers 1.0
import net.jami.Constants 1.0
import "mainview"
......@@ -157,6 +158,14 @@ ApplicationWindow {
mainApplicationLoader.setSource(JamiQmlUtils.mainViewLoadPath)
}
}
onLoaded: {
// Quiet check for updates on start if set to.
if (SettingsAdapter.getAppValue(Settings.AutoUpdate)) {
UpdateManager.checkForUpdates(true)
UpdateManager.setAutoUpdateCheck(true)
}
}
}
overlay.modal: ColorOverlay {
......
......@@ -105,14 +105,6 @@ ColumnLayout {
}
}
Component.onCompleted: {
// Quiet check for updates on start if set to.
if (SettingsAdapter.getAppValue(Settings.AutoUpdate)) {
UpdateManager.checkForUpdates(true)
UpdateManager.setAutoUpdateCheck(true)
}
}
Connections {
target: UpdateManager
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment