The re-connect interval is displayed as part of the status by `StatusInfo`
and the connection options page when the status is disconnected. This
change simply emits the `statusChanged()` signal to ensure the displayed
re-connect interval is updated when it changes.
Otherwise a handler for a pending connection from before the call to
`connect()` might be handled after the call to `connect()` and set the
connection back to the disconnected state. This is already done in
`reconnect()`. If `connect()` is postponed and then `reconnect()` is
invoked as well then `reconnect()` will win.
Make use of all Qt features conditional that are not supported on the
web assembly platform (mainly TLS support and QProcess).
Note that HTTPs is supposed to work nevertheless as long as the certificate
matches (with the usual corss-site scripting limitations).
* Fix handling of patterns ending with `*` or `**`
* Fix parsing comments
* Add further test cases
* Improve documentation
* Fix compilation against Qt 5
* Support different path separators
When disconnecting the callback we need to destroy the QNetworkReply
manually (as this is no longer done by the usual handler). This will also
close any network connections (if still open).
This test setup utilizes the "mocked" configuration so far only used for
manual testing. This allows adding unit tests for models without having to
run Syncthing itself. The test is pretty basic itself at this point.
This is the same as the feature already present in the launcher and
connection settings. Not sure how much sense it makes for systemd services
as they run rather independently from the UI but maybe it is useful.
It looks like `libstdc++` and `libc++` only define this `enum class` member
when the `ETIME` macro is defined. To prevent build errors when this macro
is not defined it makes sense to check for this error only conditionally.
Lazy-initialize the network information backend so warnings it possibly
shows don't disturb the output of the CLI (which does not need the network
information backend anyway).