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
John Veness
c2a0eee029
Change Directory to Folder in user-facing strings
2023-09-17 19:33:31 +01:00
5fa69e4f5a
Rename SyncthingDevStatus::OwnDevice
in accordance with UI change
2023-09-16 22:28:35 +02:00
89caa76102
Add option for CLI's wait-for-idle
to require devs to be connected
...
See https://github.com/Martchus/syncthingtray/issues/199
2023-08-27 00:09:48 +02:00
0f5da7fa50
Avoid that shell completion of syncthingctl blocks shell for too long
2023-07-04 19:07:03 +02:00
7d6c7de834
Allow setting request timeout in syncthingctl
2023-07-04 19:04:20 +02:00
d766bfeb66
Return early when config for shell completion cannot be loaded
2023-07-04 18:49:03 +02:00
5a2334cda4
Mark internal function of cli/application.cpp
static
2023-07-04 18:47:06 +02:00
bca1e1bda5
Avoid warning about unreferenced variable
2023-06-08 12:33:11 +02:00
42a0d9c9f7
Show the connection type of a device
2023-05-11 23:44:10 +02:00
1ea029f2a2
Avoid use of non-standard escape sequence
2023-05-11 23:43:18 +02:00
4d96f791b6
Apply clang-format
2023-01-28 20:19:43 +01:00
818b40801a
Allow referencing directories by their labels in syncthingctl
2023-01-28 17:17:34 +01:00
f865d1ffbc
Use folder label as "caption" in syncthingctl instead of ID
...
This makes it easier to identify folders when one is not using
human-readable folder IDs and is more consistent with other UIs.
2023-01-28 17:05:49 +01:00
256e90a0cb
Avoid warning about unqualified std cast
2022-11-04 16:51:01 +01:00
e81166cd79
Fix several warnings when building against Qt 6
2021-11-04 00:16:27 +01:00
239f750028
Improve timestamp parsing/handling
...
* Use local time consistently for timestamps which might get displayed
within the UI, e.g. the dir status was in one case set to the local time
and in other cases GMT was used which could lead to discarding status
updates
* Print warning when timestamp parsing fails (instead of ignoring it
silently)
* Set directory status from folder status response even when parsing the
timestamp fails
* Catch possible exception when printing log timestamps in syncthingctl
2021-05-18 00:08:21 +02:00
f75966aadc
Fix warnings
2021-03-20 22:39:40 +01:00
975e86c895
Allow backend libraries to be used from other projects
...
So far the backend libraries' include paths were relative within this
repository. This means the header files could not be used at their
installed location.
This change replaces them with "<>" includes to fix that problem and adds
a new include directory so building everything at once still works.
With this change it should be easier to actually split some parts into
another repository if this one would become too big.
2021-01-25 19:48:11 +01:00
2eaddb0464
cli: Print own device always on top to fix test failures
...
* Otherwise tests fail when the name of the own device preceeds the other
device names
* See https://github.com/Martchus/PKGBUILDs/issues/102
2021-01-11 18:49:35 +01:00
da911c6350
Refactor overall status compution
...
* Allow configuring the information to consider for computing the overall
status via SyncthingStatusComputionFlags
* Add flag to allow considering the status of remote devices for
https://github.com/Martchus/syncthingtray/issues/74
* Show only plain "idle" status when no flags are present for
https://github.com/Martchus/syncthingtray/issues/76
* Set the default flags to keep the default behavior as-is
2020-12-31 02:48:18 +01:00
3b49e9e312
Support Qt 6 (commit 174154b)
2020-09-04 01:09:18 +02:00
dc7d9b815f
Adapt to changes in c++utilities
2019-06-14 19:15:26 +02:00
64473df5ba
Adapt to changes in c++utilities
2019-06-10 22:48:26 +02:00
d88df866d2
Adapt to c++utilities v5
2019-05-04 21:05:21 +02:00
646d9363da
Don't show stats for pause dirs in CLI
2019-02-16 00:34:18 +01:00
b9a65ef113
Remove redundant poll interval defaults
2018-10-25 18:23:37 +02:00
fbad874471
Revert "cli: Ignore that version might be missing"
...
This reverts commit 7ba6afba74
.
2018-10-25 01:00:01 +02:00
7ba6afba74
cli: Ignore that version might be missing
2018-10-21 00:05:01 +02:00
1c6bd37b9d
cli: Take --no-color into account when displaying status
2018-10-20 23:42:18 +02:00
2e67e6b2de
Use signals for logAvailable() and qrCodeAvailable()
2018-10-20 22:08:25 +02:00
f0a2d60906
cli: Abort editing config if nothing has changed
2018-09-15 18:42:14 +02:00
3731933c37
Show file system watcher delay in CLI
2018-09-15 18:28:44 +02:00
de9259e545
Show whether filesystem watcher active
2018-09-15 18:25:02 +02:00
45ef2518e8
Apply clang-format
2018-08-04 15:47:43 +02:00
f3e7b5fe8b
cli: Show more overall information
2018-07-30 23:01:04 +02:00
ad3c8b5240
Don't meld 'unshared' into the status
...
Just deal with it like with the paused flag. This will
hopefully solve the issue that dirs are wrongly shown as
unshared till the next status update.
2018-07-22 22:09:18 +02:00
0acfdd7002
Use "rescan disabled" instead of "0 s"
2018-07-05 17:40:36 +02:00
7166f6532a
Display overall status info in CLI
2018-07-05 17:39:35 +02:00
2fcc94f567
Handle new folder types
...
See https://github.com/syncthing/syncthing/pull/4942
2018-05-12 23:08:57 +02:00
f6428e4ff7
Print dirs and devs sorted in syncthingctl status
2018-05-01 01:10:00 +02:00
37e24ccfb7
Use QStringLiteral in Application::editConfigViaScript()
2018-04-08 13:03:05 +02:00
68c9f27e2a
Add helper for changing config via JavaScript
2018-04-07 22:57:36 +02:00
5726bab292
Allow specifying script lines via CLI args
2018-04-07 22:28:21 +02:00
b61592fbbd
Allow editing Syncthing config via JavaScript
2018-04-07 22:01:54 +02:00
bf4b26c6f8
Perform at least some checks before sending config
2018-04-07 18:30:35 +02:00
b92bf4f27a
Add dry-run for syncthingctl edit
2018-04-07 18:30:14 +02:00
ad98bfbc22
Improve syncthingctl log
2018-04-02 12:48:27 +02:00
c7ea5974e4
Allow editing config via syncthingctl
2018-04-01 23:01:37 +02:00
ac36e6955d
Improve coding style in syncthingctl
2018-04-01 22:34:15 +02:00