Skip to content

Commit

Permalink
Move self._gsettings.connect('changed', self.on_gsettings_value_chang…
Browse files Browse the repository at this point in the history
…ed) in __init__() *after* defining self._set_get_functions

Resolves: #454
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2171140

I still cannot reproduce this myself because it seems highly timing
dependent, but I believe I have finally understood the problem, I
believe this commit should fix it.
  • Loading branch information
mike-fabian committed Jul 30, 2023
1 parent 0289ca7 commit c43b4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/hunspell_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def __init__(
self._setup_pid = 0
self._gsettings = Gio.Settings(
schema='org.freedesktop.ibus.engine.typing-booster')
self._gsettings.connect('changed', self.on_gsettings_value_changed)

self._prop_dict: Dict[str, IBus.Property] = {}
self._sub_props_dict: Dict[str, IBus.PropList] = {}
Expand Down Expand Up @@ -778,6 +777,7 @@ def __init__(
'set': self.set_google_application_credentials,
'get': self.get_google_application_credentials},
}
self._gsettings.connect('changed', self.on_gsettings_value_changed)

self._clear_input_and_update_ui()

Expand Down

0 comments on commit c43b4d6

Please sign in to comment.