This commit is contained in:
Leonardo Murillo 2015-06-05 17:11:32 -06:00
parent 2236ccf0e1
commit 68b419deec
3 changed files with 7 additions and 5 deletions

View file

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

View file

@ -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());

View file

@ -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();
}
}