forked from Support/sp-hydra-veil-gui
gui has force all sync option now, even though core is the only caller so far with it
This commit is contained in:
parent
dfb90d8f3b
commit
5996a117b3
1 changed files with 5 additions and 2 deletions
|
|
@ -349,12 +349,15 @@ def disconnect_active(ui_caller: Optional[Callable] = None) -> Result:
|
|||
else:
|
||||
return Result(valid=True)
|
||||
|
||||
def sync_now(ui_caller: Callable):
|
||||
def sync_now(ui_caller: Callable, force_all: bool = False):
|
||||
if force_all:
|
||||
logger.info("Performing sync with force all")
|
||||
take_action(
|
||||
action=new_sync,
|
||||
ui_caller=ui_caller,
|
||||
client_observer=client_observer,
|
||||
connection_observer=connection_observer
|
||||
connection_observer=connection_observer,
|
||||
force_all=force_all
|
||||
)
|
||||
|
||||
def delete_profile_action(profile_id: int, ui_caller: Callable) -> Result:
|
||||
|
|
|
|||
Loading…
Reference in a new issue