From efe3e5049b1b4bb89e9a987a0587ef7fd5a341e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=81=D0=B5=D0=BB=D1=8C=D0=BE=D0=B2=20=D0=9C?= =?UTF-8?q?=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=84=D0=B2=D0=B3=D0=B5=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D1=87?= Date: Sat, 15 Jun 2024 00:48:29 +0300 Subject: [PATCH] The style of the code has been improved. --- src/main/java/com/nickmegistone/form/InitForm.java | 6 +----- src/main/java/com/nickmegistone/vocaliamaven/Vocalia.java | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/nickmegistone/form/InitForm.java b/src/main/java/com/nickmegistone/form/InitForm.java index 85bff32..f30640c 100644 --- a/src/main/java/com/nickmegistone/form/InitForm.java +++ b/src/main/java/com/nickmegistone/form/InitForm.java @@ -251,11 +251,7 @@ private void searchMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:even synchronized (lockConnection) { lockConnection.notifyAll(); } - if (synthesizerIsSpeaking) { - signalSearch(SYNTHESIZER_IS_SPEAKING, false); - } else { - signalSearch(SEARCH_WHEN_CLICKED, true); - } + signalSearch(synthesizerIsSpeaking ? SYNTHESIZER_IS_SPEAKING : SEARCH_WHEN_CLICKED, !synthesizerIsSpeaking); }//GEN-LAST:event_searchMouseClicked private void formMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseClicked diff --git a/src/main/java/com/nickmegistone/vocaliamaven/Vocalia.java b/src/main/java/com/nickmegistone/vocaliamaven/Vocalia.java index 58c6b28..cf62ff3 100644 --- a/src/main/java/com/nickmegistone/vocaliamaven/Vocalia.java +++ b/src/main/java/com/nickmegistone/vocaliamaven/Vocalia.java @@ -12,7 +12,6 @@ import static com.nickmegistone.apputils.AppUtils.*; -// TODO: Add full docker support public class Vocalia extends javax.swing.JFrame { private final InitForm initForm;