Skip to content

Commit

Permalink
Fix PinyinProperties::propertyActivate method
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Jan 13, 2025
1 parent b0ce1ef commit 0a5435f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PYPinyinProperties.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ PinyinProperties::propertyActivate (const gchar *prop_name, guint prop_state) {
return TRUE;
}

#ifdef IBUS_BUILD_LUA_EXTENSION
const int len = strlen("LuaConverter.");
if (0 == strncmp (prop_name, "LuaConverter.", len)) {
if (prop_state == PROP_STATE_CHECKED) {
Expand All @@ -257,6 +258,7 @@ PinyinProperties::propertyActivate (const gchar *prop_name, guint prop_state) {

return TRUE;
}
#endif

return FALSE;
}
Expand Down

0 comments on commit 0a5435f

Please sign in to comment.