Commit 362ed68a authored by Roman Alifanov's avatar Roman Alifanov

settings: fix setting_notify thread-safety

parent 8ca39c43
...@@ -142,7 +142,10 @@ class CustomSetting(BaseSetting): ...@@ -142,7 +142,10 @@ class CustomSetting(BaseSetting):
_, notification, seconds = parts _, notification, seconds = parts
from ...main import get_main_window from ...main import get_main_window
get_main_window().setting_notify( from gi.repository import GLib
GLib.idle_add(
get_main_window().setting_notify,
self.module.name, self.module.name,
self._(notification), self._(notification),
int(seconds) if seconds else None int(seconds) if seconds else None
......
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