fix spacing

This commit is contained in:
Adam Mathes 2019-02-09 20:23:51 -08:00
parent 8021ff4256
commit 88f59d2016

View File

@ -21,15 +21,15 @@ import QtQuick 2.2
import QtQuick.Window 2.1
QtObject {
id: root
id: root
property int terminalCount
function newWindow() {
var component = Qt.createComponent("main.qml")
var window = component.createObject()
window.show()
function newWindow() {
var component = Qt.createComponent("main.qml")
var window = component.createObject()
window.show()
terminalCount = terminalCount + 1
}
}
function closeWindow() {
terminalCount = terminalCount - 1
if (terminalCount == 0) {
@ -38,6 +38,6 @@ QtObject {
}
Component.onCompleted: {
terminalCount = 0
root.newWindow()
}
root.newWindow()
}
}