mirror of https://github.com/zlatinb/muwire
remove chat-from-contacts button and context menu
parent
d761a2ee20
commit
0bf696e62a
|
@ -471,17 +471,6 @@ class MainFrameController {
|
|||
view.showSearchWindow.call()
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
void chatFromTrusted() {
|
||||
int row = view.getSelectedContactsTableRow()
|
||||
if (row < 0)
|
||||
return
|
||||
Persona p = model.contacts[row].persona
|
||||
|
||||
startChat(p)
|
||||
view.showChatWindow.call()
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
void browseFromUpload(Uploader u) {
|
||||
Persona p = u.getDownloaderPersona()
|
||||
|
|
|
@ -671,8 +671,6 @@ class MainFrameView {
|
|||
enabled : bind {model.subscribeButtonEnabled}, subscribeAction)
|
||||
button(text : trans("MESSAGE_VERB"), toolTipText: trans("TOOLTIP_CONTACTS_MESSAGE"),
|
||||
enabled : bind {model.messageFromTrustedButtonEnabled}, messageFromTrustedAction)
|
||||
button(text : trans("CHAT"), toolTipText: trans("TOOLTIP_CONTACTS_CHAT"),
|
||||
enabled : bind {model.chatFromTrustedButtonEnabled}, chatFromTrustedAction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2225,11 +2223,6 @@ class MainFrameView {
|
|||
browseCollectionsItem.addActionListener({ mvcGroup.controller.browseCollectionsFromTrusted() })
|
||||
trustMenu.add(browseCollectionsItem)
|
||||
}
|
||||
if (model.chatFromTrustedButtonEnabled) {
|
||||
JMenuItem chatItem = new JMenuItem(trans("CHAT"))
|
||||
chatItem.addActionListener({ mvcGroup.controller.chatFromTrusted() })
|
||||
trustMenu.add(chatItem)
|
||||
}
|
||||
if (model.messageFromTrustedButtonEnabled) {
|
||||
JMenuItem messageItem = new JMenuItem(trans("MESSAGE_VERB"))
|
||||
messageItem.addActionListener({ mvcGroup.controller.messageFromTrusted() })
|
||||
|
|
Loading…
Reference in New Issue