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