🚧 Importer tasks fix

This commit is contained in:
GeoffreyCoulaud
2023-05-18 23:42:58 +02:00
parent d981f05095
commit 2abf671ea4
4 changed files with 45 additions and 19 deletions

7
src/utils/task.py Normal file
View File

@@ -0,0 +1,7 @@
def make_task_thread_func_closure(func, data):
"""Prepare a Gio.TaskThreadFunc with its data bound in a closure"""
def closure(task, obj, _data, cancellable):
func(task, obj, data, cancellable)
return closure