Commit 6881d13f authored by Roman Alifanov's avatar Roman Alifanov

settings: fix handle_callback thread-safety

parent 21a29289
...@@ -126,7 +126,9 @@ class CustomSetting(BaseSetting): ...@@ -126,7 +126,9 @@ class CustomSetting(BaseSetting):
def _handle_callback(self, line): def _handle_callback(self, line):
try: try:
_, action, target, value = line.split(':', 3) _, action, target, value = line.split(':', 3)
self.section.handle_callback( from gi.repository import GLib
GLib.idle_add(
self.section.handle_callback,
action.strip(), action.strip(),
target.strip(), target.strip(),
value.strip() value.strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment