Make the Controller a singleton
This commit is contained in:
committed by
Nicolas Fella
parent
1739a454da
commit
2d1a7d6500
@@ -10,7 +10,6 @@ import Spectral.Setting 0.1
|
||||
import Spectral 0.1
|
||||
|
||||
Dialog {
|
||||
property var controller
|
||||
property var connection
|
||||
|
||||
property string keyword
|
||||
@@ -59,7 +58,7 @@ Dialog {
|
||||
if (identifierField.isJoined) {
|
||||
roomListForm.joinRoom(identifierField.room)
|
||||
} else {
|
||||
controller.joinRoom(connection, identifierField.text)
|
||||
Controller.joinRoom(connection, identifierField.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -249,7 +248,7 @@ Dialog {
|
||||
circular: true
|
||||
|
||||
onClicked: {
|
||||
controller.joinRoom(connection, roomID)
|
||||
Controller.joinRoom(connection, roomID)
|
||||
root.close()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user