mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-08 10:07:48 +02:00
Syncing
This commit is contained in:
parent
2236ccf0e1
commit
68b419deec
3 changed files with 7 additions and 5 deletions
|
@ -4,8 +4,10 @@ import QtQuick.Controls.Styles 1.3
|
|||
import "controls"
|
||||
import "styles"
|
||||
|
||||
Item {
|
||||
UpdateDialog {
|
||||
HifiConstants { id: hifi }
|
||||
id: updateDialog
|
||||
objectName: "UpdateDialog"
|
||||
implicitWidth: backgroundImage.width
|
||||
implicitHeight: backgroundImage.height + releaseNotes.height
|
||||
x: parent ? parent.width / 2 - width / 2 : 0
|
||||
|
|
|
@ -809,6 +809,7 @@ void Application::initializeUi() {
|
|||
LoginDialog::registerType();
|
||||
MessageDialog::registerType();
|
||||
VrMenu::registerType();
|
||||
UpdateDialog::registerType();
|
||||
|
||||
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
||||
offscreenUi->create(_glWidget->context()->contextHandle());
|
||||
|
|
|
@ -25,12 +25,11 @@ void UpdateDialog::displayDialog() {
|
|||
}
|
||||
|
||||
void UpdateDialog::setUpdateAvailableDetails(const QString& updateAvailableDetails) {
|
||||
if (updateAvailableDetails != _updateAvailableDetails) {
|
||||
if (updateAvailableDetails == "") {
|
||||
auto applicationUpdater = DependencyManager::get<AutoUpdate>();
|
||||
foreach (int key, applicationUpdater.data()->getBuildData().keys()) {
|
||||
qDebug() << "[LEOTEST] Build number: " << QString::number(key);
|
||||
}
|
||||
_updateAvailableDetails = "This is just a test " + QString::number(applicationUpdater.data()->getBuildData().lastKey());
|
||||
qDebug() << "[LEOTEST] We are updating the text in the dialog";
|
||||
emit updateAvailableDetailsChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue