Use config to control whether user can change presence state from the systray.

No change to default behaviour (i.e. user can change presence state).
cusax-fix
Peter O'Neill 13 years ago
parent 75fef62f93
commit b795ea0a88

@ -166,8 +166,18 @@ public void actionPerformed(ActionEvent event)
"service.gui.ADD_CONTACT",
"service.gui.icons.ADD_CONTACT_16x16_ICON", listener, swing));
addSeparator(trayMenu);
add(trayMenu, new StatusSubMenu(swing).getMenu());
addSeparator(trayMenu);
Boolean chatPresenceDisabled
= OsDependentActivator.getConfigurationService().getBoolean(
"net.java.sip.communicator.impl.gui.main.presence."
+ "CHAT_PRESENCE_DISABLED",
false);
if (!chatPresenceDisabled.booleanValue())
{
add(trayMenu, new StatusSubMenu(swing).getMenu());
addSeparator(trayMenu);
}
String showHideName;
String showHideTextId;

Loading…
Cancel
Save