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.
This will hopefully fix:
```
[ 56s] /home/abuild/rpmbuild/BUILD/syncthingtray-1718839812.fa5a7b5/redhat-linux-build/syncthingmodel/syncthingmodel-qt6_autogen/EWIEGA46WW/moc_syncthingfilemodel.cpp:177:5: required from here
[ 56s] /usr/include/qt6/QtCore/qmetatype.h:842:23: error: invalid application of 'sizeof' to incomplete type 'QAction'
[ 56s] 842 | static_assert(sizeof(T), "Type argument of Q_PROPERTY or Q_DECLARE_METATYPE(T*) must be fully defined");
```
When Syncthing restarts itself, its main process is not terminating (as its
main process is just a monitoring process). The "Consider process status …"
feature was relying on the process being stopped and started again as
trigger for trying to re-connect, though. To make it also work when
Syncthing restarts itself, this change checks the log for an exiting
message of the monitoring process and considers the process running again
when the GUI address is logged again.
This fixes https://github.com/Martchus/syncthingtray/issues/236.
Notifications are not (yet) suppressed. (Not sure how easy it is and how
much sense it makes.)
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).
The geometry must not be saved in the destructor because at this point it
seems already invalidated leading to the next web view window being
restored to a very small size. It works when saving the geometry in the
close event instead.