Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: _RimeParseStringOptWithFallback output value error, when load settings from schema. rime#976 #977

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

fxliang
Copy link
Contributor

@fxliang fxliang commented Jul 26, 2023

fixed #976

@@ -805,21 +805,21 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize)
{std::string("preview"), UIStyle::PREVIEW},
{std::string("preview_all"), UIStyle::PREVIEW_ALL}
};
_RimeParseStringOptWithFallback(config, "style/preedit_type", style.preedit_type, _preeditMap, UIStyle::COMPOSITION);
_RimeParseStringOptWithFallback(config, "style/preedit_type", style.preedit_type, _preeditMap, style.preedit_type);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里 style.preedit_type 的初始值是怎么设定的

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

呃,似乎就直接不用fallback也可以的感觉了,修改了一下。

@fxliang fxliang changed the title fixed: _RimeParseStringOptWithFallback fallback value error, when load settings from schema. rime#976 fixed: _RimeParseStringOptWithFallback output value error, when load settings from schema. rime#976 Aug 3, 2023
@fxliang fxliang merged commit d2d69be into rime:master Aug 3, 2023
1 check passed
@fxliang fxliang deleted the fix-976 branch September 6, 2023 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI 125 版本 style 中的 preedit_type: preview 属性失效,显示编码而非高亮候选
2 participants