Merge pull request from jherico/qml_window_visibility

Fix initial visibility of QML windows from scripts
This commit is contained in:
samcake 2016-06-24 12:42:17 -07:00 committed by GitHub
commit 61f5088ef3

View file

@ -118,7 +118,7 @@ void QmlWindowClass::initQml(QVariantMap properties) {
}
bool visible = !properties.contains(VISIBILE_PROPERTY) || properties[VISIBILE_PROPERTY].toBool();
object->setProperty(VISIBILE_PROPERTY, visible);
object->setProperty(OFFSCREEN_VISIBILITY_PROPERTY, visible);
object->setProperty(SOURCE_PROPERTY, _source);
// Forward messages received from QML on to the script