1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-09 19:43:31 +02:00

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

Change-Id: I310be96a8c085fd1da6f444c7d85e4eb06326f5f
This commit is contained in:
Ming Rui Zhang 2021-05-07 11:22:42 -04:00 committed by Andreas Traczyk
parent e64a9e7ee7
commit eb2eb786be
2 changed files with 9 additions and 8 deletions

View file

@ -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 {

View file

@ -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