Commit Graph

116 Commits

Author SHA1 Message Date
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
3ffe62b289 Show relevant ignore pattern for items in file browser 2024-05-25 04:47:53 +02:00
fc47cea9e5 Avoid building systemd integration by default when compiling for Android
The Qt D-Bus module is not available on Android builds so this would lead
to an configuration error.
2024-05-23 00:53:18 +02:00
aef925743e Allow selecting items in file browser
This is the first step to allowing mass actions like ignoring/unignoring
all selected items.
2024-05-18 23:54:46 +02:00
cc1fef7365 Show local files in file model 2024-05-18 12:55:03 +02:00
f55d3431ff Update translations
Translations for experimental/WIP features are still unfinished.
2024-05-08 11:24:24 +02:00
fa2a8e27be Add documentation for SyncthingConnection::readSetIgnores() 2024-05-05 13:40:39 +02:00
5ac40a2924 Fix error message of requests with callback 2024-05-05 13:39:05 +02:00
c5d3c7745a Add error/loading indications in file browser and simplify path handling 2024-05-05 13:24:37 +02:00
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
5f995055b0 Improve comments of browse-API-related types 2024-05-05 12:44:14 +02:00
c65586dab7 Add function to change ignore patterns 2024-05-04 23:12:53 +02:00
2ebfdb2cc2 Add function to query ignore patterns 2024-05-04 23:00:13 +02:00
83e1dd6d8a Improve file browser 2024-05-04 22:44:00 +02:00
047a4e461e Allow refreshing root in file browser 2024-05-01 15:58:09 +02:00
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
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
80e5a0f64c Update translations 2024-04-09 11:36:32 +02:00
96bf755af2 Apply clang-format 2024-04-09 11:35:45 +02:00
1293a36613 Fix compilation with Qt 5 2024-04-08 14:17:04 +02:00
35d03551c4 Update translations 2024-04-06 19:47:16 +02:00
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
93b5d66875 Allow browsing remote/global files 2024-04-05 01:30:00 +02:00
a16a343639 Update translations 2024-03-09 11:55:48 +01:00
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
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
dff6bcab67 Apply change of global.h template 2024-02-22 19:43:14 +01:00
572e82cec0 Fix resuming devs when network not metered anymore after 57d47de7 2024-02-18 00:53:28 +01:00
960f43f82a Update translations 2024-02-17 18:12:24 +01:00
211a7942ef Apply clang-format 2024-02-17 18:11:58 +01:00
00d3a8198a Fix crash when network information backend is not available 2024-02-17 01:41:23 +01:00
0c15936119 Allow logging of some high-level notifications 2024-02-17 00:42:05 +01:00
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
57d47de74c Avoid considering manually changed devs handling metered network 2024-02-16 17:37:52 +01:00
af26b47105 Update translations 2024-02-15 22:13:38 +01:00
106f1d5f92 Fix clazy warning about mismarked slots 2024-02-15 22:06:00 +01:00
219863be3e Remove obsolete "currently" in remark about pauseResumeDevice() 2024-02-15 22:03:46 +01:00
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
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
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
b554805487 Update translations 2024-01-28 21:39:28 +01:00
bb4f1dea2f Apply clang-format 2024-01-28 21:39:15 +01:00
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
76b406f4e1 Adapt tests to recent changes in certificate handling 2024-01-28 21:35:54 +01:00
6145268dd3 Adapt tests to recent changes in URL handling 2024-01-28 21:35:25 +01:00
736806eba5 Update translations 2024-01-28 20:57:47 +01:00
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
59df08b25b Update translations 2024-01-15 21:32:25 +01:00
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
939594aea6 Update translations 2024-01-02 15:22:15 +01:00