solaar: use only timer thread to save config.yaml
This commit is contained in:
parent
e3b25840fd
commit
6939fb7196
|
@ -22,7 +22,6 @@ import threading
|
|||
|
||||
import yaml as _yaml
|
||||
|
||||
from gi.repository import GLib
|
||||
from logitech_receiver.common import NamedInt as _NamedInt
|
||||
|
||||
from solaar import __version__
|
||||
|
@ -142,7 +141,7 @@ def save(defer=False):
|
|||
else:
|
||||
with configuration_lock:
|
||||
if not save_timer:
|
||||
save_timer = threading.Timer(5.0, lambda: GLib.idle_add(do_save))
|
||||
save_timer = threading.Timer(5.0, do_save)
|
||||
save_timer.start()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue