Skip to content

Commit

Permalink
fix(custom_settings): fall back to $shared_data_dir/build when loadin…
Browse files Browse the repository at this point in the history
…g config
  • Loading branch information
lotem committed Feb 17, 2018
1 parent 463dc09 commit caf8ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/lever/custom_settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool CustomSettings::Load() {
fs::path shared_data_path(deployer_->shared_data_dir);
fs::path config_path(user_data_path / "build" / (config_id_ + ".yaml"));
if (!config_.LoadFromFile(config_path.string())) {
config_path = shared_data_path / (config_id_ + ".yaml");
config_path = shared_data_path / "build" / (config_id_ + ".yaml");
if (!config_.LoadFromFile(config_path.string())) {
LOG(WARNING) << "cannot find '" << config_id_ << ".yaml'.";
return false;
Expand Down

0 comments on commit caf8ebb

Please sign in to comment.