From 6df3590f22a81b90e56395645f7f64b4a0bfd4c7 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()); } /**