gui has force all sync option now, even though core is the only caller so far with it

This commit is contained in:
SimplifiedPrivacy 2026-11-15 21:21:21 -05:00
parent dfb90d8f3b
commit 5996a117b3

View file

@ -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: