Update library in background
This patch adds a function for updating the entire library in the background.
This commit is contained in:
parent
ed9d853065
commit
588a2bfb7a
|
@ -305,3 +305,13 @@ def update():
|
||||||
sep = libsaria.path.sep
|
sep = libsaria.path.sep
|
||||||
for path in locations:
|
for path in locations:
|
||||||
update_path(path)
|
update_path(path)
|
||||||
|
|
||||||
|
def update_bg2():
|
||||||
|
update()
|
||||||
|
save()
|
||||||
|
|
||||||
|
def update_bg():
|
||||||
|
if is_loaded():
|
||||||
|
from libsaria import threads
|
||||||
|
thr = threads.BG_Thread(update_bg2)
|
||||||
|
thr.start()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user