settings object not available yet

dbus-notify
Zlatin Balevsky 2022-08-13 11:01:50 +01:00
parent 830b735b23
commit 0ce9cf7fbc
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 6 deletions

View File

@ -131,7 +131,6 @@ 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())
@ -745,11 +744,9 @@ class MainFrameView {
panel (border: etchedBorder(), constraints : BorderLayout.SOUTH) { panel (border: etchedBorder(), constraints : BorderLayout.SOUTH) {
borderLayout() borderLayout()
panel (constraints : BorderLayout.WEST) { panel (constraints : BorderLayout.WEST) {
if (!muWireSettings.disableUpdates) { button(text: "", icon: imageIcon('/update.png'), toolTipText: trans("TOOLTIP_UPDATE"),
button(text: "", icon: imageIcon('/update.png'), toolTipText: trans("TOOLTIP_UPDATE"), enabled: bind { model.updateAvailableEvent != null || model.updateDownloadedEvent != null },
enabled: bind { model.updateAvailableEvent != null || model.updateDownloadedEvent != null }, showUpdateAction)
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)
} }