From 9883a5ddd336f89caf40db76f7f8d6ed346496e2 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Sat, 4 Jul 2020 14:00:09 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: delvh --- src/main/java/envoy/client/ui/controller/ChatScene.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/envoy/client/ui/controller/ChatScene.java b/src/main/java/envoy/client/ui/controller/ChatScene.java index 3ef3dd2..9dfcc25 100644 --- a/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -178,7 +178,7 @@ public final class ChatScene { if (!client.isOnline()) updateInfoLabel("You are offline", "infoLabel-info"); recorder = new AudioRecorder(); - if (!recorder.isSupported()) voiceButton.setDisable(true); + voiceButton.setDisable(!recorder.isSupported()); } /**