修复针对Mac设备的未初始化就进行更改判断造成的BUG

This commit is contained in:
makejava 2018-07-30 17:50:26 +08:00
parent 950b8b80fe
commit 0465d18d8f
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ public class GlobalConfigSettingPanel extends AbstractGroupPanel<GlobalConfigGro
*/
@Override
public boolean isModified() {
editTemplatePanel.refresh();
// 修复BUG当初始未完成时插件进行修改判断
if (editTemplatePanel != null) {
editTemplatePanel.refresh();
}
return !configInfo.getGlobalConfigGroupMap().equals(group) || !configInfo.getCurrGlobalConfigGroupName().equals(currGroupName);
}