Skip to content
Snippets Groups Projects
Commit eb2eb786 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

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

Change-Id: I310be96a8c085fd1da6f444c7d85e4eb06326f5f
parent e64a9e7e
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ import QtGraphicalEffects 1.14 ...@@ -30,6 +30,7 @@ import QtGraphicalEffects 1.14
import net.jami.Models 1.0 import net.jami.Models 1.0
import net.jami.Adapters 1.0 import net.jami.Adapters 1.0
import net.jami.Enums 1.0 import net.jami.Enums 1.0
import net.jami.Helpers 1.0
import net.jami.Constants 1.0 import net.jami.Constants 1.0
import "mainview" import "mainview"
...@@ -157,6 +158,14 @@ ApplicationWindow { ...@@ -157,6 +158,14 @@ ApplicationWindow {
mainApplicationLoader.setSource(JamiQmlUtils.mainViewLoadPath) 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 { overlay.modal: ColorOverlay {
......
...@@ -105,14 +105,6 @@ ColumnLayout { ...@@ -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 { Connections {
target: UpdateManager target: UpdateManager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment