Catfriend1 / syncthing-android

Syncthing-Fork - A Syncthing Wrapper for Android.
Mozilla Public License 2.0
1.2k stars 40 forks source link

FR: Add ability to "Start a sync cycle now" #1011

Open JohnVeness opened 11 months ago

JohnVeness commented 11 months ago

Description of the issue

I have "Run according to time schedule" ticked, so that it runs for 5 minutes once an hour. This works fine generally, but sometimes I want to sync some changes immediately without having to wait up to an hour for the next cycle.

At the moment, I do this by changing, in Status, from "Follow run conditions" to "Force start ignore run conditions", wait for whatever it is to sync, then change it back to "Follow run conditions".

There are a couple of problems with this current workflow:

1) I get impatient sitting at the Status screen, not knowing whether the thing I wanted has synced or not, so sometimes I click back to "Follow run conditions" too early and find that I haven't actually got the file I wanted yet!

2) If instead of clicking "Follow run conditions" I look elsewhere to see if the file I wanted has synced, I often get distracted and start working on the file, leaving syncthing in "Force start" mode for hours, wasting battery!

I would like to propose a button we can press to force start a sync cycle now, for whatever duration is currently configured in the settings, without having to manually press "Force start" and remember to press "Follow run conditions" X minutes later. Or to put it another way, a button to add 60 minutes to the timer so that an automatic sync cycle starts and runs for the configured duration.

Version Information

JohnVeness commented 11 months ago

I've just noticed that there's a Quick Panel button ("Run for 5 minutes") that can be added that does exactly what I want! So most of this can be ignored.

The only thing I would suggest is to have a "Run for 5 minutes" button in the main UI too.

theraser commented 1 month ago

I've just noticed that there's a Quick Panel button ("Run for 5 minutes") that can be added that does exactly what I want!

Nice, thanks for that hint! I didn't know about his.

What I'm still missing is a feature to add this button to my home screen and temporary disable sync restrictions like "only Wifi" mode. That would be awesome if one would like to use only Wifi by default, but mobile data for a few minutes if forced to. This button already exists in the main UI but I don't know how to trigger it from somewhere else.