diff options
| author | Aizistral | 2022-11-11 22:31:37 +0100 |
|---|---|---|
| committer | Aizistral | 2022-11-11 22:31:37 +0100 |
| commit | d5843ea6333d0029c6228e9db422798ba1568936 (patch) | |
| tree | 88d4ef380b4d8edcc02c4200d030f4edd35b1c73 /src/main/java/com/aizistral/nochatreports | |
| parent | f8fb102bf05ea70374c85325d85678e8e1739408 (diff) | |
Fix encryption settings screen
Fixes #288
Diffstat (limited to 'src/main/java/com/aizistral/nochatreports')
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java b/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java index 0a43fa1..b7d5009 100644 --- a/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java +++ b/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java @@ -90,8 +90,8 @@ public class EncryptionConfigScreen extends Screen { var button = new AdvancedImageButton(this.keyField.getX() + this.keyField.getWidth() - 15, this.keyField.getY() + 3, 12, 12, 0, 0, 0, ENCRYPTION_ICONS, 64, 64, btn -> {}, Component.empty(), this); - button.setTooltip(new AdvancedTooltip(() -> this.validationIcon.yTexStart == 0 ? VALIDATION_OK - : VALIDATION_FAILED).setMaxWidth(250)); + button.setTooltip(new AdvancedTooltip(() -> this.validationIcon != null && + this.validationIcon.yTexStart == 0 ? VALIDATION_OK : VALIDATION_FAILED).setMaxWidth(250)); button.active = false; button.visible = true; |
