SPARK-1822 - Add additional default properties to control GUI settings (#250)

* SPARK-1758 - Do not show UNFILED group if it's empty

* SPARK-1822 - Add additional default properties to control GUI settings

* SPARK-1822 - Add additional default properties to control GUI settings
This commit is contained in:
Michael Klein
2016-11-01 10:08:48 -04:00
committed by wroot
parent e51cb9c695
commit 89307c32f7
2 changed files with 11 additions and 4 deletions

View File

@ -112,6 +112,9 @@ DISABLE_PLUGINS_MENU_ITEM = false
# If true, disable the option to transfer files
DISABLE_FILE_XFER = false
# If true, disable the option to take screenshots
DISABLE_SCREENSHOTS = false
# If true, disable the option to remove contacts and groups in roster
DISABLE_REMOVALS = false

View File

@ -70,10 +70,14 @@ public class ChatRoomTransferDecorator implements KeyListener, FileDropListener,
sendFileButton.addActionListener(this);
}
sendScreenShotButton = UIComponentRegistry.getButtonFactory().createScreenshotButton();
sendScreenShotButton.setToolTipText(Res.getString("message.send.picture"));
chatRoom.addChatRoomButton(sendScreenShotButton);
sendScreenShotButton.addActionListener(this);
// See if we should disable the ability to take screenshots
if (!Default.getBoolean("DISABLE_SCREENSHOTS")) {
sendScreenShotButton = UIComponentRegistry.getButtonFactory().createScreenshotButton();
sendScreenShotButton.setToolTipText(Res.getString("message.send.picture"));
chatRoom.addChatRoomButton(sendScreenShotButton);
sendScreenShotButton.addActionListener(this);
}
}
public void keyTyped(KeyEvent e) {