|
|
|
@ -890,6 +890,9 @@ public class PreferencePane extends BasicPane {
|
|
|
|
|
if (!languageChanged) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// 重启弹窗出现之前提示用户保存模板
|
|
|
|
|
SaveSomeTemplatePane saveSomeTempaltePane = new SaveSomeTemplatePane(true, SwingUtilities.getWindowAncestor(this)); |
|
|
|
|
saveSomeTempaltePane.showSavePane(); |
|
|
|
|
int rv = JOptionPane.showOptionDialog( |
|
|
|
|
null, |
|
|
|
|
i18nText("Fine-Design_Basic_Language_Change_Successful"), |
|
|
|
@ -901,11 +904,7 @@ public class PreferencePane extends BasicPane {
|
|
|
|
|
null |
|
|
|
|
); |
|
|
|
|
if (rv == JOptionPane.OK_OPTION) { |
|
|
|
|
// 重启前需要保存下模板
|
|
|
|
|
SaveSomeTemplatePane saveSomeTempaltePane = new SaveSomeTemplatePane(true, SwingUtilities.getWindowAncestor(this)); |
|
|
|
|
if (saveSomeTempaltePane.showSavePane()) { |
|
|
|
|
RestartHelper.restart(); |
|
|
|
|
} |
|
|
|
|
RestartHelper.restart(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|