Skip to content

Commit caf8ebb

Browse files
committed
fix(custom_settings): fall back to $shared_data_dir/build when loading config
1 parent 463dc09 commit caf8ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rime/lever/custom_settings.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bool CustomSettings::Load() {
2828
fs::path shared_data_path(deployer_->shared_data_dir);
2929
fs::path config_path(user_data_path / "build" / (config_id_ + ".yaml"));
3030
if (!config_.LoadFromFile(config_path.string())) {
31-
config_path = shared_data_path / (config_id_ + ".yaml");
31+
config_path = shared_data_path / "build" / (config_id_ + ".yaml");
3232
if (!config_.LoadFromFile(config_path.string())) {
3333
LOG(WARNING) << "cannot find '" << config_id_ << ".yaml'.";
3434
return false;

0 commit comments

Comments
 (0)