save user choice to customized dir

This commit is contained in:
yungez 2017-03-09 11:47:15 +08:00
Родитель 7588193e6c
Коммит 54666947a3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -107,12 +107,12 @@ biSetting.isBIEnabled = function (skipCheck, userBiSettingDir) {
if (choice === 'y') {
console.log('\nYou choose to participate in Microsoft data collection.\n\n');
setting.isEnabled = true;
biSetting.writeSetting(setting);
biSetting.writeSetting(setting, userBiSettingDir);
return true;
} else {
console.log('\nYou choose not to participate in Microsoft data collection.\n\n');
setting.isEnabled = false;
biSetting.writeSetting(setting);
biSetting.writeSetting(setting, userBiSettingDir);
return false;
}
}