Commit 83ff387a authored by Florian Schäfer's avatar Florian Schäfer

Repaint preferences panel immediately when switching expert mode on or off

parent d4b09e9f
Pipeline #26298720 passed with stages
in 21 minutes and 47 seconds
......@@ -27,16 +27,19 @@ public class WikiPreferences implements SubPreferenceSetting {
public WikiPreferences() {
super();
languageLabel.setToolTipText(I18n.tr("Sets the default language for the Wikipedia articles"));
}
@Override
public void addGui(PreferenceTabbedPane gui) {
final JPanel container = new JPanel(new GridBagLayout());
ExpertToggleAction.addExpertModeChangeListener(isExpert -> {
sophoxServerLabel.setVisible(isExpert);
sophoxServerField.setVisible(isExpert);
container.revalidate();
container.repaint();
}, true);
}
@Override
public void addGui(PreferenceTabbedPane gui) {
final JPanel container = new JPanel(new GridBagLayout());
container.setAlignmentY(JPanel.TOP_ALIGNMENT);
final GridBagConstraints constraints = new GridBagConstraints();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment