This commit is contained in:
parent
4b51fffc96
commit
a1b9e1b229
@ -178,6 +178,18 @@ class SessionList: Reactor.Component {
|
|||||||
// https://sciter.com/forums/topic/replacecustomize-context-menu/
|
// https://sciter.com/forums/topic/replacecustomize-context-menu/
|
||||||
var menu = this.$(menu#remote-context);
|
var menu = this.$(menu#remote-context);
|
||||||
menu.attributes["remote-id"] = id;
|
menu.attributes["remote-id"] = id;
|
||||||
|
var conn = this.$(menu #connect);
|
||||||
|
if (conn) {
|
||||||
|
var alias = me.parent.parent.$(#alias);
|
||||||
|
if (alias) {
|
||||||
|
alias = alias.text.replace(' ', '');
|
||||||
|
if (alias != id) {
|
||||||
|
conn.text = translate('Connect') + ' ' + id;
|
||||||
|
} else {
|
||||||
|
conn.text = translate('Connect');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
me.popup(menu);
|
me.popup(menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user