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.
* Use command syntax and double-dashes to be in-line with what Syncthing's
help text suggests
* Drop the `--no-restart` parameter; I probably only added it after
checking what flags the systemd-unit file specifies. However, the
systemd-unit file specifies `--no-restart` only because restarts are
handled by systemd in that case. For the launcher of Syncthing Tray it
makes probably more sense to keep restarts enabled by default.
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.
Pass a widget when invoking `QStyle::drawControl()`; the Windows 11 style
uses the widget unconditionally.
Considering the documentation explicitly states `The widget argument is
optional` and the default value for the function argument is `nullptr` this
is supposedly a bug in Qt.
Pass profile to new web page (that is being created when a `target="blank"`
link is clicked) to avoid running into `Can not adopt content from a
different WebEngineProfile.`.
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.
* Add `--wait` parameter so Syncthing Tray will wait until the tray becomes
available; this might help if Syncthing Tray is started by the desktop
environment before the tray is available (unless it is started too soon
even for that)
* Add `X-LXQt-Need-Tray=true` to ensure the system tray is available on
LXQt because just `--wait` might not be sufficient here (according to
https://github.com/Martchus/syncthingtray/issues/240); this is in-line
with the autostart entry of https://github.com/lxqt/lxqt-powermanagement