fix cancel sync

This commit is contained in:
kekee000
2016-04-19 00:39:49 +08:00
parent 20f7043df2
commit 26fb3aa742

View File

@@ -401,7 +401,7 @@ define(
!new SettingSync({
onChange: function (setting) {
program.project.updateConfig(program.data.projectId, {
sync: $.extend(syncConfig, setting)
sync: setting ? $.extend(syncConfig, setting) : null
});
program.projectViewer.show(program.project.items(), program.data.projectId);
}