mirror of https://github.com/zlatinb/muwire
stop local server if tab is closed
parent
9373d58b53
commit
ff7c4eae28
|
@ -80,7 +80,10 @@ class ChatServerView {
|
|||
}
|
||||
|
||||
def closeTab = {
|
||||
if (model.buttonText == "Disconnect")
|
||||
if (model.host == model.core.me) {
|
||||
mvcGroup.parentGroup.controller.stopChatServer()
|
||||
}
|
||||
else if (model.buttonText == "Disconnect")
|
||||
controller.disconnect()
|
||||
int index = parent.indexOfComponent(pane)
|
||||
parent.removeTabAt(index)
|
||||
|
|
Loading…
Reference in New Issue