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")
int rowHeight = application.context.get("row-height")
int treeRowHeight = application.context.get("tree-row-height")
MuWireSettings muWireSettings = application.context.get("muwire-settings")
def screenDimensions = Toolkit.getDefaultToolkit().getScreenSize()
int mainFrameX = (int)Math.min(1400.0d, screenDimensions.getWidth())
@ -745,11 +744,9 @@ class MainFrameView {
panel (border: etchedBorder(), constraints : BorderLayout.SOUTH) {
borderLayout()
panel (constraints : BorderLayout.WEST) {
if (!muWireSettings.disableUpdates) {
button(text: "", icon: imageIcon('/update.png'), toolTipText: trans("TOOLTIP_UPDATE"),
enabled: bind { model.updateAvailableEvent != null || model.updateDownloadedEvent != null },
showUpdateAction)
}
button(text: "", icon: imageIcon('/update.png'), toolTipText: trans("TOOLTIP_UPDATE"),
enabled: bind { model.updateAvailableEvent != null || model.updateDownloadedEvent != null },
showUpdateAction)
button(text: "", icon: imageIcon('/edit_profile.png'), toolTipText: trans("TOOLTIP_PROFILE_EDITOR"),
editProfileAction)
}