save without checking the connection
now, to save the webdav settings, you need to specify them, then click save, after clicking the button, a connection to the specified server occurs and if the connection failed, then nothing is saved. please make two buttons, "check and save". when you click on the check, the connection and settings are checked, when you click on save, it is saved without checking, it always saves without any tricks, even if the settings do not work.
Why would you save a non working connection?
When you save settings, we need to propagate the changes through the whole application (there may be background sync jobs running). Saving a non working connection would make them fail...
if I start configuring and start doing data entry, I need to save it, now I'm configuring the server, but it may temporarily not work. I need to save at least something and then finish it properly.
Or check every second and ask the user when he tries to save non-working connection.
Or check every second and ask the user when he tries to save non-working connection.
it's a great idea to allow a non-working connection to be saved, ask the user if he wants to save the connection if it doesn't work (yes/no)