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:
parent
e64a9e7ee7
commit
eb2eb786be
2 changed files with 9 additions and 8 deletions
|
@ -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 {
|
||||||
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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue