Martchus
f55d3431ff
Update translations
...
Translations for experimental/WIP features are still unfinished.
2024-05-08 11:24:24 +02:00
Martchus
fa2a8e27be
Add documentation for `SyncthingConnection::readSetIgnores()`
2024-05-05 13:40:39 +02:00
Martchus
5ac40a2924
Fix error message of requests with callback
2024-05-05 13:39:05 +02:00
Martchus
c5d3c7745a
Add error/loading indications in file browser and simplify path handling
2024-05-05 13:24:37 +02:00
Martchus
506f2a295c
Delete QNetworkReply correctly when destroying SyncthingFileModel
...
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).
2024-05-05 12:48:01 +02:00
Martchus
5f995055b0
Improve comments of browse-API-related types
2024-05-05 12:44:14 +02:00
Martchus
c65586dab7
Add function to change ignore patterns
2024-05-04 23:12:53 +02:00
Martchus
2ebfdb2cc2
Add function to query ignore patterns
2024-05-04 23:00:13 +02:00
Martchus
83e1dd6d8a
Improve file browser
2024-05-04 22:44:00 +02:00
Martchus
047a4e461e
Allow refreshing root in file browser
2024-05-01 15:58:09 +02:00
Martchus
ecece11df3
Introduce basic test setup for models
...
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.
2024-04-26 23:04:47 +02:00
Martchus
d99fadd1f1
Allow stopping the systemd service automatically on metered connections
...
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.
2024-04-19 00:04:48 +02:00
Martchus
80e5a0f64c
Update translations
2024-04-09 11:36:32 +02:00
Martchus
96bf755af2
Apply clang-format
2024-04-09 11:35:45 +02:00
Martchus
1293a36613
Fix compilation with Qt 5
2024-04-08 14:17:04 +02:00
Martchus
35d03551c4
Update translations
2024-04-06 19:47:16 +02:00
Martchus
fe3d7891e9
Avoid unconditional use of `std::errc::stream_timeout`
...
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.
2024-04-05 18:04:52 +02:00
Martchus
93b5d66875
Allow browsing remote/global files
2024-04-05 01:30:00 +02:00
Martchus
a16a343639
Update translations
2024-03-09 11:55:48 +01:00
Martchus
9ecb9dc6c3
Improve code for mocked reply
...
* Fix missing include
* Avoid useless cast
* Convert to current coding style
2024-03-01 23:59:28 +01:00
Martchus
f2210a5691
Avoid warnings of network information backend showing in CLI
...
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).
2024-02-29 13:46:42 +01:00
Martchus
dff6bcab67
Apply change of `global.h` template
2024-02-22 19:43:14 +01:00
Martchus
572e82cec0
Fix resuming devs when network not metered anymore after 57d47de7
2024-02-18 00:53:28 +01:00
Martchus
960f43f82a
Update translations
2024-02-17 18:12:24 +01:00
Martchus
211a7942ef
Apply clang-format
2024-02-17 18:11:58 +01:00
Martchus
00d3a8198a
Fix crash when network information backend is not available
2024-02-17 01:41:23 +01:00
Martchus
0c15936119
Allow logging of some high-level notifications
2024-02-17 00:42:05 +01:00
Martchus
df01c0538f
Fix condition for enabling/disabling notification about remote sync
...
See https://github.com/Martchus/syncthingtray/issues/232
2024-02-17 00:10:30 +01:00
Martchus
57d47de74c
Avoid considering manually changed devs handling metered network
2024-02-16 17:37:52 +01:00
Martchus
af26b47105
Update translations
2024-02-15 22:13:38 +01:00
Martchus
106f1d5f92
Fix clazy warning about mismarked slots
2024-02-15 22:06:00 +01:00
Martchus
219863be3e
Remove obsolete "currently" in remark about `pauseResumeDevice()`
2024-02-15 22:03:46 +01:00
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