summaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorAizistral2022-11-11 22:31:37 +0100
committerAizistral2022-11-11 22:31:37 +0100
commitd5843ea6333d0029c6228e9db422798ba1568936 (patch)
tree88d4ef380b4d8edcc02c4200d030f4edd35b1c73 /src/main/java/com
parentf8fb102bf05ea70374c85325d85678e8e1739408 (diff)
Fix encryption settings screen
Fixes #288
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java4
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;