Make the Controller a singleton
This commit is contained in:
committed by
Nicolas Fella
parent
1739a454da
commit
2d1a7d6500
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user