Commit Graph

1061 Commits

Author SHA1 Message Date
Martchus 9ce9b11ba4 Use Boost.Process for launcher to cope with further sub processes
* Use a process group / job object via Boost.Process to be able to
  terminate sub processes as well
* Do not try to stop the process gracefully under Windows by posting
  WM_CLOSE because this has no effect on Syncthing anyways
* See https://github.com/Martchus/syncthingtray/issues/94
2021-06-16 22:44:48 +02:00
Martchus 7f55afc51c Update translations 2021-06-04 16:26:35 +02:00
Martchus 986959c8b2 Avoid reading reply data if the reply isn't open
This might be the case when the request has been aborted. Reading from the
reply in this case would result in an unwanted log message from Qt.
2021-06-04 16:26:09 +02:00
Martchus 3e28db37e8 Update libsyncthing to v1.17.0 2021-06-01 20:53:27 +02:00
Martchus 93f59ebf8a Apply clang-format 2021-05-27 18:16:56 +02:00
Martchus 0c475f5b7e Update translations 2021-05-27 18:16:22 +02:00
Martchus 5a39b6bc91 Improve displaying errors 2021-05-21 22:35:28 +02:00
Martchus 7ad82c9dfe Emit time stamp parsing errors like other parsing errors 2021-05-21 22:34:42 +02:00
Martchus 62e7797558 Allow enabling logging of libsyncthingconnector at runtime
* Remove compile-time switches to enable logging
* Enable logging if certain environment variables are set
* Allow logging all API responses
2021-05-18 18:21:48 +02:00
Martchus fbb7685f4b Fix warnings about detatching Qt container via for loop 2021-05-18 00:08:21 +02:00
Martchus 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
Martchus 91c24753e6 Polish appearance settings tab a little bit 2021-05-07 00:26:51 +02:00
Martchus d1f0519411 Avoid expanding info text in connection settings 2021-05-07 00:12:05 +02:00
Martchus cbecf9ccf2 Add an icon for every settings tab 2021-05-07 00:06:25 +02:00
Martchus 180b425e8b Fix typo in README.md 2021-05-04 12:05:45 +02:00
Martchus 803fa7f2e0 Update libsyncthing to v1.16.0 2021-05-04 12:05:28 +02:00
Martchus ac033517cc Allow configuring rendering size of status icons
The default of 32 px should be fine in most cases and when the UI is scaled
it is also automatically scaled. However, if one has a tray area or Plasma
panel with extraordinarily big icons like latte-dock it might still be
required to render icons at a higher resolution. This is hard to determine
programmatically so I'm just adding a manual setting.
2021-04-21 18:23:20 +02:00
Martchus b5aa29c98b Update translations 2021-04-07 20:01:07 +02:00
Martchus 1bf579e1d1 Apply cmake-format 2021-04-07 20:00:27 +02:00
Martchus 46099abc0c Assign empty completion when receiving 404 response 2021-04-07 19:55:47 +02:00
Martchus 9ae7f4a265 Avoid requesting completion for paused devs/dirs after remote index changed 2021-04-07 19:53:16 +02:00
Martchus a5f629d710 Avoid crash when start time can not be parsed 2021-04-07 19:42:07 +02:00
Martchus 31ad8b979c Do not request completion for paused directories
See https://github.com/Martchus/PKGBUILDs/issues/132
2021-04-07 15:12:28 +02:00
Martchus 9dc5ad7ceb Add target to build syncthing executable (like the syncthing library) 2021-04-07 15:11:40 +02:00
Martchus 8b922166dd Bump patch version 2021-04-07 15:11:32 +02:00
Martchus dec09de4a1 Make brace in Sway config example optional 2021-04-06 17:51:05 +02:00
Martchus a825f5b613 Update libsyncthing to v1.15.1 2021-04-06 17:44:00 +02:00
Martchus c51379cdbd Remove obsolete comment 2021-03-31 22:47:10 +02:00
Martchus 3fb621875c Don't assign minimum size if dialog would overflow
This gets a little bit too small and with "Consider window frame size
within centerWidgetAvoidingOverflow()" in qtutilities it shouldn't be
required anymore.
2021-03-24 21:26:15 +01:00
Martchus 832fec0ffe Use more uniform coding style in syncthingicons.cpp 2021-03-24 20:02:07 +01:00
Martchus 18352a6ce1 Show maximize button on settings dialog
So it looks nicer combined with the previous commit.
2021-03-24 15:02:05 +01:00
Martchus 8c4e2168bc Avoid misplaced/clipped dialogs when default dialog size doesn't fit screen
https://github.com/Martchus/syncthingtray/issues/89
2021-03-24 14:40:59 +01:00
Martchus 4903927de9 Improve notes regarding Wayland 2021-03-23 23:03:35 +01:00
Martchus f0de7d204a Fix warning about flags for setFrameStyle() 2021-03-23 15:23:19 +01:00
Martchus f75966aadc Fix warnings 2021-03-20 22:39:40 +01:00
Martchus 6c12f18eaf Update translations 2021-03-06 16:26:23 +01:00
Martchus c84865acc1 Apply clang-format 2021-03-06 16:25:56 +01:00
Martchus 56c488ea6c Update libsyncthing to v1.14.0 2021-03-02 18:03:08 +01:00
Martchus f5b6c506c7 Don't allow to rescan paused directories from Dolphin integration 2021-02-12 21:06:23 +01:00
Martchus 8e51e641ab Improve documentation about plasmoid testing 2021-02-12 20:31:29 +01:00
Martchus 0fc44a9142 Disable pause/resume button within GUI in consistency with official GUI 2021-02-12 20:31:05 +01:00
Martchus a9f570fbc9 Fix clazy warning about detatching Qt container within syncthingfileitemaction.cpp 2021-02-12 20:25:57 +01:00
Martchus 851edeaafc Never consider the own device as paused 2021-02-12 19:44:27 +01:00
Martchus 1cfd067abd Do not accept "lastSeen" timestamps older or equal to the UNIX epoch
The UNIX epoch seems to be the "null-value" provided by Syncthing's API
when there's no "lastSeen" timestamp, e.g. when it is the own device.
2021-02-12 17:55:38 +01:00
Martchus bdf00a9889 Never consider the own device as paused 2021-02-12 12:51:18 +01:00
Martchus f9df9c46ec Improve build instructions in README.md 2021-02-07 15:33:18 +01:00
Martchus 606a9f053d Update libsyncthing to v1.13.1
It seems that the tags v1.13.0 and v1.13.1 are identical, though. Both tags
point to commit f6fac3e949c882771b4b02ce3f586dd09b7555da.
2021-02-03 18:21:33 +01:00
Martchus dccf567e67 Update translations 2021-02-03 00:02:48 +01:00
Martchus 8f3653b7ca Update libsyncthing to v1.13.0 2021-02-03 00:01:57 +01:00
Martchus 8ec9038b2c Better decouple syncthingwidgets from libsyncthing if libsyncthing is disabled
Before this change syncthingwidgets unconditionally included the header
from libsyncthing so it couldn't be used as stand-alone library if
libsyncthing was disabled.
2021-02-03 00:01:34 +01:00