mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
@ -112,6 +112,9 @@ DISABLE_PLUGINS_MENU_ITEM = false
|
|||||||
# If true, disable the option to transfer files
|
# If true, disable the option to transfer files
|
||||||
DISABLE_FILE_XFER = false
|
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
|
# If true, disable the option to remove contacts and groups in roster
|
||||||
DISABLE_REMOVALS = false
|
DISABLE_REMOVALS = false
|
||||||
|
|
||||||
|
|||||||
@ -70,10 +70,14 @@ public class ChatRoomTransferDecorator implements KeyListener, FileDropListener,
|
|||||||
sendFileButton.addActionListener(this);
|
sendFileButton.addActionListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendScreenShotButton = UIComponentRegistry.getButtonFactory().createScreenshotButton();
|
// See if we should disable the ability to take screenshots
|
||||||
sendScreenShotButton.setToolTipText(Res.getString("message.send.picture"));
|
if (!Default.getBoolean("DISABLE_SCREENSHOTS")) {
|
||||||
chatRoom.addChatRoomButton(sendScreenShotButton);
|
sendScreenShotButton = UIComponentRegistry.getButtonFactory().createScreenshotButton();
|
||||||
sendScreenShotButton.addActionListener(this);
|
sendScreenShotButton.setToolTipText(Res.getString("message.send.picture"));
|
||||||
|
|
||||||
|
chatRoom.addChatRoomButton(sendScreenShotButton);
|
||||||
|
sendScreenShotButton.addActionListener(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void keyTyped(KeyEvent e) {
|
public void keyTyped(KeyEvent e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user