From a70fcacb2c5918288aefe50bb322524d6dab50d0 Mon Sep 17 00:00:00 2001 From: Junwen Date: Wed, 27 Dec 2023 22:21:26 +0800 Subject: [PATCH] fix freq not saving issue --- src/main/java/component/ConfigDialog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/component/ConfigDialog.java b/src/main/java/component/ConfigDialog.java index a954abc..a748b85 100644 --- a/src/main/java/component/ConfigDialog.java +++ b/src/main/java/component/ConfigDialog.java @@ -97,6 +97,9 @@ public ConfigDialog(Project project) throws IOException, InterruptedException { freqCombo.addItem(30.0); } } + if (new File("config.json").exists()) { + loadConfig(); + } } private void loadConfig() { @@ -264,6 +267,7 @@ protected void textChanged(@NotNull DocumentEvent e) { dataOutputLabel.setBorder(new EmptyBorder(JBUI.insetsLeft(20))); panel.add(dataOutputLabel); dataOutputTextField.setEditable(false); + dataOutputTextField.setButtonEnabled(false); dataOutputTextField.setBorder(new EmptyBorder(contentMargin)); dataOutputTextField.setMaximumSize(new Dimension(500, 40)); dataOutputTextField.setText(selectDataOutputPlaceHolder);