mirror of https://github.com/zlatinb/muwire
hide update button if updates are disabled
parent
2165057a62
commit
95ff13468f
|
@ -131,6 +131,7 @@ class MainFrameView {
|
||||||
settings = application.context.get("ui-settings")
|
settings = application.context.get("ui-settings")
|
||||||
int rowHeight = application.context.get("row-height")
|
int rowHeight = application.context.get("row-height")
|
||||||
int treeRowHeight = application.context.get("tree-row-height")
|
int treeRowHeight = application.context.get("tree-row-height")
|
||||||
|
MuWireSettings muWireSettings = application.context.get("muwire-settings")
|
||||||
|
|
||||||
def screenDimensions = Toolkit.getDefaultToolkit().getScreenSize()
|
def screenDimensions = Toolkit.getDefaultToolkit().getScreenSize()
|
||||||
int mainFrameX = (int)Math.min(1400.0d, screenDimensions.getWidth())
|
int mainFrameX = (int)Math.min(1400.0d, screenDimensions.getWidth())
|
||||||
|
@ -744,9 +745,11 @@ class MainFrameView {
|
||||||
panel (border: etchedBorder(), constraints : BorderLayout.SOUTH) {
|
panel (border: etchedBorder(), constraints : BorderLayout.SOUTH) {
|
||||||
borderLayout()
|
borderLayout()
|
||||||
panel (constraints : BorderLayout.WEST) {
|
panel (constraints : BorderLayout.WEST) {
|
||||||
button(text: "", icon: imageIcon('/update.png'), toolTipText: trans("TOOLTIP_UPDATE"),
|
if (!muWireSettings.disableUpdates) {
|
||||||
enabled: bind {model.updateAvailableEvent != null || model.updateDownloadedEvent != null},
|
button(text: "", icon: imageIcon('/update.png'), toolTipText: trans("TOOLTIP_UPDATE"),
|
||||||
showUpdateAction)
|
enabled: bind { model.updateAvailableEvent != null || model.updateDownloadedEvent != null },
|
||||||
|
showUpdateAction)
|
||||||
|
}
|
||||||
button(text: "", icon: imageIcon('/edit_profile.png'), toolTipText: trans("TOOLTIP_PROFILE_EDITOR"),
|
button(text: "", icon: imageIcon('/edit_profile.png'), toolTipText: trans("TOOLTIP_PROFILE_EDITOR"),
|
||||||
editProfileAction)
|
editProfileAction)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue