🚧 Importer tasks fix
This commit is contained in:
7
src/utils/task.py
Normal file
7
src/utils/task.py
Normal 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
|
||||
Reference in New Issue
Block a user