Skip to content

Commit a70fcac

Browse files
committed
fix freq not saving issue
1 parent d830eb8 commit a70fcac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/component/ConfigDialog.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public ConfigDialog(Project project) throws IOException, InterruptedException {
9797
freqCombo.addItem(30.0);
9898
}
9999
}
100+
if (new File("config.json").exists()) {
101+
loadConfig();
102+
}
100103
}
101104

102105
private void loadConfig() {
@@ -264,6 +267,7 @@ protected void textChanged(@NotNull DocumentEvent e) {
264267
dataOutputLabel.setBorder(new EmptyBorder(JBUI.insetsLeft(20)));
265268
panel.add(dataOutputLabel);
266269
dataOutputTextField.setEditable(false);
270+
dataOutputTextField.setButtonEnabled(false);
267271
dataOutputTextField.setBorder(new EmptyBorder(contentMargin));
268272
dataOutputTextField.setMaximumSize(new Dimension(500, 40));
269273
dataOutputTextField.setText(selectDataOutputPlaceHolder);

0 commit comments

Comments
 (0)