mirror of
https://github.com/lutris/lutris
synced 2024-10-04 14:59:37 +00:00
Launch a media sync after the library sync is finished.
This commit is contained in:
parent
85deaa610f
commit
f88f0df23d
|
@ -7,6 +7,7 @@ from lutris.api import disconnect, read_user_info
|
||||||
from lutris.gui.config.base_config_box import BaseConfigBox
|
from lutris.gui.config.base_config_box import BaseConfigBox
|
||||||
from lutris.gui.config.updates_box import UpdateButtonBox
|
from lutris.gui.config.updates_box import UpdateButtonBox
|
||||||
from lutris.gui.dialogs import ClientLoginDialog, QuestionDialog
|
from lutris.gui.dialogs import ClientLoginDialog, QuestionDialog
|
||||||
|
from lutris.services.lutris import sync_media
|
||||||
from lutris.util.jobs import AsyncCall
|
from lutris.util.jobs import AsyncCall
|
||||||
from lutris.util.library_sync import (
|
from lutris.util.library_sync import (
|
||||||
LOCAL_LIBRARY_SYNCED,
|
LOCAL_LIBRARY_SYNCED,
|
||||||
|
@ -179,6 +180,7 @@ class AccountsBox(BaseConfigBox):
|
||||||
|
|
||||||
def on_local_library_synced(self):
|
def on_local_library_synced(self):
|
||||||
self.sync_box.show_completion_markup(self.get_sync_box_label(), "")
|
self.sync_box.show_completion_markup(self.get_sync_box_label(), "")
|
||||||
|
AsyncCall(sync_media, None)
|
||||||
|
|
||||||
def get_sync_box_label(self):
|
def get_sync_box_label(self):
|
||||||
synced_at = settings.read_setting("last_library_sync_at")
|
synced_at = settings.read_setting("last_library_sync_at")
|
||||||
|
|
Loading…
Reference in a new issue