Also add warning dialog

This commit is contained in:
SiboVG 2023-04-07 08:21:14 +02:00
parent ed7a3a2a72
commit 09494e5b17

View File

@ -294,6 +294,10 @@ public class GeneralPreferencesPanel extends PreferencesPanel {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
JOptionPane.showMessageDialog(parent,
trans.get("generalprefs.ImportWarning.msg"),
trans.get("generalprefs.ImportWarning.title"),
JOptionPane.WARNING_MESSAGE);
PreferencesDialog.showPreferences(parent.getParentFrame()); // Refresh the preferences dialog
}
});