parent
ef58f002b3
commit
1d86c3d326
|
@ -60,7 +60,14 @@ Opaque.SettingsList { // settingsPane
|
||||||
onClicked: {
|
onClicked: {
|
||||||
gcd.savePeerSettings(txtOnion.text, txtDisplayName.text)
|
gcd.savePeerSettings(txtOnion.text, txtDisplayName.text)
|
||||||
toolbar.setTitle(txtDisplayName.text)
|
toolbar.setTitle(txtDisplayName.text)
|
||||||
|
|
||||||
|
// FIXME this is kind of a hack as ideally we could just update the peer name
|
||||||
|
// and have that change broadcast to each message - but there isn't an easy way to do that
|
||||||
|
// with our current message model setup. As such we simply reset and reload the message pane
|
||||||
|
gcd.broadcast("ResetMessagePane")
|
||||||
theStack.pane = theStack.messagePane
|
theStack.pane = theStack.messagePane
|
||||||
|
mm.setHandle(txtOnion.text)
|
||||||
|
gcd.loadMessagesPane(txtOnion.text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue