Skip to content

Commit

Permalink
fix freq not saving issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wanteatfruit committed Dec 27, 2023
1 parent d830eb8 commit a70fcac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/component/ConfigDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a70fcac

Please sign in to comment.