Make the Controller a singleton

This commit is contained in:
Tobias Fella
2020-11-04 01:43:13 +00:00
committed by Nicolas Fella
parent 1739a454da
commit 2d1a7d6500
13 changed files with 42 additions and 66 deletions

View File

@@ -9,7 +9,6 @@ import Spectral.Setting 0.1
import Spectral 0.1
Dialog {
property var controller
property var connection
anchors.centerIn: parent
@@ -47,7 +46,7 @@ Dialog {
highlighted: true
onClicked: {
controller.createDirectChat(connection, identifierField.text)
Controller.createDirectChat(connection, identifierField.text)
}
}
}
@@ -157,7 +156,7 @@ Dialog {
circular: true
onClicked: {
controller.createDirectChat(connection, userID)
Controller.createDirectChat(connection, userID)
root.close()
}
}