Commit Graph

13 Commits

Author SHA1 Message Date
Martchus 22cc048e33 Fix various details about `SyncthingIgnorePattern`
* 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
2024-05-25 19:11:36 +02:00
Martchus 3ffe62b289 Show relevant ignore pattern for items in file browser 2024-05-25 04:47:53 +02: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 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 9c49c41990 Adapt integration test for auth changes in Syncthing v1.26.0 2023-11-07 12:48:38 +01: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 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 843f164df1 Avoid potentially losing events
I have observed that Syncthing Tray can get stuck thinking a remote device
still needs data. Likely the update got lost. The code contains certain
conditions in which folder completion events and requesting completion are
supressed. Those conditions are based on timestamps. That is not ideal as
the accuracy is only one second (so different timestamps might be
considered equal as they are rounded to be the same). Additionally, it
makes no sense to assume a timestamp upon receiving a response as the
information might be older than the time it was received.

This change avoids those conditions. It rather uses the event ID to
decide what event/reply is newer.

This change also uses quint64 instead of int for event IDs to avoid running
into an overflow (or rather conversion error) when deserializing the ID
which might be bigger than int. (Not sure how big the ID can become; this
is to be on the safe side.)
2023-04-15 16:18:23 +02:00
Martchus db657bb1aa Use QByteArrayLiteral for such literals 2023-03-28 17:20:59 +02:00
Martchus 96e92f13a3 Avoid relying on symlink for include directories
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:27:33 +01:00