solaar: use only timer thread to save config.yaml

This commit is contained in:
Peter F. Patel-Schneider 2024-02-27 14:44:11 -05:00
parent e3b25840fd
commit 6939fb7196
1 changed files with 1 additions and 2 deletions

View File

@ -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()