Martchus
30fa37f048
Allow to pause automatically on metered network connections
...
* Allow to pause all devices on metered network connections (devices will
be automatically resumed when network is no longer metered)
* Allow to stop Syncthing when it was started via the built-in launcher
on metered network connections (it will be automatically started again
when the network connection is no longer metered)
* See https://github.com/Martchus/syncthingtray/issues/231
2024-02-15 21:02:18 +01:00
Martchus
699dcbdcac
Revert "Enable timeout for long-polling requests by default"
...
* This reverts commit becf6e873b
.
* This timeout might be problematic after all as it might cause
Syncthing to lose its connection not being able to connect
again on its own (see
https://github.com/Martchus/syncthingtray/issues/217#issuecomment-1859002266 )
2024-02-15 18:45:05 +01:00
Martchus
0f1bcae534
Fix build with c++utilities change to add header for compile definitions
...
* Add include directory for testhelper library manually as using the
imported target was not possibly
* Fix visibility when using libsyncthing in syncthingwidgets
* Update changed global headers along the way
2024-01-30 22:35:47 +01:00
Martchus
b554805487
Update translations
2024-01-28 21:39:28 +01:00
Martchus
bb4f1dea2f
Apply clang-format
2024-01-28 21:39:15 +01:00
Martchus
299142bd1c
Avoid hard-coding exact error message in tests
...
We don't actually care about the exact error message here and if it changes
tests would needlessly fail.
2024-01-28 21:38:40 +01:00
Martchus
76b406f4e1
Adapt tests to recent changes in certificate handling
2024-01-28 21:35:54 +01:00
Martchus
6145268dd3
Adapt tests to recent changes in URL handling
2024-01-28 21:35:25 +01:00
Martchus
736806eba5
Update translations
2024-01-28 20:57:47 +01:00
Martchus
0ba97e2355
Fix encoding of query items
...
Plus signs must be percent encoded as they are otherwise interpreted as
white-spaces, see https://github.com/Martchus/syncthingtray/issues/229 .
2024-01-28 20:57:22 +01:00
Martchus
59df08b25b
Update translations
2024-01-15 21:32:25 +01:00
Martchus
07ff8a5c1b
Avoid TLS errors on Syncthing's automatic certificate renewal
...
* Reload the certificate when running into TLS errors an it looks like the
certificate was renewed
* See https://github.com/Martchus/syncthingtray/issues/226
2024-01-15 21:29:24 +01:00
Martchus
939594aea6
Update translations
2024-01-02 15:22:15 +01:00
Martchus
18d90163ab
Change code for certificate handling to use the current coding style
2023-12-30 20:38:58 +01:00
Martchus
e45db9d668
Fix certificate errors when Schannel TLS backend is used
...
* Unify code paths for compiling expected SSL errors so in any case the
expected errors are including the error types emitted by the Schannel
backend
* See https://github.com/Martchus/syncthingtray/issues/223
2023-12-30 20:38:15 +01:00
Martchus
c1284331be
Handle redirections more nicely
...
* Log redirections in accordance with logging settings
* Load self-signed certificate as needed
2023-12-30 20:11:34 +01:00
Martchus
51e266fbac
Fix compilation with Qt 6.7.0beta1
...
Fix the wrong placement of the `-->`; not sure why this was not detected as
invalid XML before.
2023-12-21 18:24:50 +01:00
Martchus
efa6775369
Update lookup of Syncthing config dir for Unix platforms
...
* Adapt to Syncthing commit b5082f6af8b0a70afd3bc42977dad26920e72b68
* See https://github.com/Martchus/syncthingtray/issues/216
and https://github.com/syncthing/syncthing/issues/9178
2023-12-10 12:39:53 +01:00
Martchus
becf6e873b
Enable timeout for long-polling requests by default
...
This setting does work quite well in my testing so far and it can help with
the issue of the connection becoming stale (see
https://github.com/Martchus/syncthingtray/issues/209 ).
2023-11-25 23:31:42 +01:00
Martchus
9360bf8bc8
Fix grammar mistakes in German translation after replacing "Verzeichnis" with "Ordner"
2023-11-10 13:17:16 +01:00
Martchus
9c49c41990
Adapt integration test for auth changes in Syncthing v1.26.0
2023-11-07 12:48:38 +01:00
Martchus
7c932fdb31
Update translations
2023-11-07 11:58:55 +01:00
Martchus
fada3c98dd
Allow configuring long-polling timeout
2023-11-06 15:06:40 +01:00
Martchus
8aedecf5f5
Update translations
2023-10-03 14:14:01 +02:00
Martchus
aa524aa8b7
Make event handling of `syncthingctl wait-for-idle` more efficient
...
Don't go though the list of dirs/devs for every dir/dev change event. Just
go though the list once after receiving new events. This makes also the
code a little bit easier to follow.
2023-09-20 18:12:55 +02:00
Martchus
230532d15e
Do the directory/folder replacement also in German translation
2023-09-18 22:34:30 +02:00
Martchus
2073692968
Update translations
2023-09-18 22:13:41 +02:00
Martchus
63bd9bb306
Merge remote-tracking branch 'JohnVeness/folder'
2023-09-18 22:07:24 +02:00
Martchus
978636b5aa
Fix crash in `syncthingctl cat` after f5795d45c2
2023-09-18 22:05:25 +02:00
John Veness
c2a0eee029
Change Directory to Folder in user-facing strings
2023-09-17 19:33:31 +01:00
Martchus
bc02a70ae9
Update translations
2023-09-16 23:10:09 +02:00
Martchus
f5795d45c2
Show this/own device always as first device
...
See https://github.com/Martchus/syncthingtray/issues/203
2023-09-16 23:07:00 +02:00
Martchus
5fa69e4f5a
Rename `SyncthingDevStatus::OwnDevice` in accordance with UI change
2023-09-16 22:28:35 +02:00
Martchus
d623dfdf5e
Replace "own device" with "this device" where it makes sense
...
* Be consistent with official UI
* See https://github.com/Martchus/syncthingtray/issues/203
2023-09-16 22:19:04 +02:00
Martchus
081def0a9e
Update translations
2023-09-04 20:35:57 +02:00
Martchus
669923dbb6
Ensure redirects to HTTPS are enabled/allowed regardless of the Qt version
...
Technically, this is not completely true because it is not supported on Qt
versions older than 5.9.
2023-09-04 20:33:32 +02:00
Martchus
b7d19ea904
Avoid duplicated code in functions for locating config files
2023-09-04 20:23:32 +02:00
Martchus
bd924330ad
Remove identical branches
...
GCC warns about this so let's just remove this leftover.
2023-09-04 20:20:51 +02:00
Martchus
c3233a8954
Update translations
2023-09-01 23:36:04 +02:00
Martchus
25c8d3f69a
Use consistent/new coding style in `readDirEvent` as well
2023-09-01 23:34:26 +02:00
Martchus
92b305aa89
Store the disconnect reason in the device info
2023-09-01 23:33:50 +02:00
Martchus
3696869a99
Remove useless and possibly problematic code when handling device events
2023-09-01 23:25:06 +02:00
Martchus
ae319f604b
Fix reading device events
...
* Fix logic error that prevented the `devStatusChanged()` event
from being emitted when a device has connected
* Fix reading device ID from event data
2023-09-01 23:21:01 +02:00
Martchus
968fcb988c
Fix finding Syncthing dir by path on Windows
...
The path needs to be normalized so inconsistent uses of `/` and `\` are not
a problem.
2023-08-19 19:16:16 +02:00
Martchus
66a8dda244
Improve test setup
...
* Improve code for reading environment variables
* Make tests work when the temp directory is not `/tmp` because e.g. `TEMP`
has been set or tests are executed under Windows
2023-08-02 17:36:26 +02:00
Martchus
e4bbe852bd
Avoid CMake deprecation warning by bumping version
2023-07-23 21:05:22 +02:00
Martchus
00f444484c
Update translations
2023-07-14 02:14:32 +02:00
Martchus
7e651be694
Fix compilation against Qt < 5.15 for Leap 15.3 builds
2023-07-11 11:55:39 +02:00
Martchus
8f481b0168
Update translations
2023-07-04 19:38:52 +02:00
Martchus
69568ea6dd
Set default transfer timeout to infinity
...
Apparently the default before introducing the request timeout was not 30000
(which is the value of QNetworkRequest::TransferTimeoutConstant). There was
actually no timeout. So let's restore this behavior for now as the main
intention was to make the timeout configurable but not change any defaults.
2023-07-04 19:33:30 +02:00