Commit Graph

92 Commits

Author SHA1 Message Date
2abb468d93 Fix typo 2022-10-02 20:34:40 +02:00
788a5b2947 Allow opening dir in file browser if path contains tilde
See https://github.com/Martchus/syncthingtray/issues/148
2022-08-02 20:15:24 +02:00
80c608208d Show status text "Connecting to Syncthing ... " when connecting
instead of just "Not connected to Syncthing"
2022-07-26 23:52:26 +02:00
8b273b6945 Improve messages for TLS errors
Before one only gets the generic error "TLS handshake failed". Now one gets
more details error messages plus the problematic certificate. This should
be helpful for debugging.
2021-10-07 18:22:41 +02:00
0ef3b80447 Fix typos found via codespell --skip .git -w 2021-07-03 19:29:49 +02:00
93f59ebf8a Apply clang-format 2021-05-27 18:16:56 +02:00
7ad82c9dfe Emit time stamp parsing errors like other parsing errors 2021-05-21 22:34:42 +02:00
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
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
46099abc0c Assign empty completion when receiving 404 response 2021-04-07 19:55:47 +02:00
a5f629d710 Avoid crash when start time can not be parsed 2021-04-07 19:42:07 +02:00
f75966aadc Fix warnings 2021-03-20 22:39:40 +01:00
ed495ec667 Add UI to configure what information should be considered to compute overall status
* See https://github.com/Martchus/syncthingtray/issues/74
* See https://github.com/Martchus/syncthingtray/issues/76
2021-01-01 20:55:18 +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
f7c3ceaece Improve documentation of connector library 2020-12-31 02:30:05 +01:00
41e0934cd8 Don't call recalculateStatus() in emitNotifications()
because notifications have nothing to do with the status and it should not
make a difference since the status would not change. The UI is supposed to
rely only on newNotification().
2020-12-31 02:28:11 +01:00
364326ddf6 Add missing includes in some header files
See https://github.com/Martchus/syncthingtray/issues/64
2020-04-27 23:08:41 +02:00
f14a34b877 Apply clang-format 2020-03-17 18:56:59 +01:00
ccb2ac3144 Clear recent changes when re-connecting (to other instance) 2020-03-17 18:55:50 +01:00
bafdb22c47 Compute the sync state for remote devices
See https://github.com/Martchus/syncthingtray/issues/62
2020-03-01 22:04:30 +01:00
133dbacb5d Use consistent order for visibility attribute 2020-01-29 18:51:10 +01:00
f9100bb0b4 Don't record file changes on dir level by default 2020-01-18 16:57:03 +01:00
6026339c83 Show recent changes 2020-01-18 16:43:13 +01: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
e56c950100 Show overall statistics in plasmoid 2019-02-17 23:46:03 +01:00
1156721822 Ensure not to continue reconnecting while still aborting 2018-12-26 01:14:01 +01:00
c83df582b6 Fix subtile bugs on reconnect
* Ensure previous long polling requests for events are aborted
  before connecting again
* Ensure results from previous requests are always discarded
  after aborting to reconnect
2018-12-25 02:30:13 +01:00
4a42a3f0c0 Fix and refactor directory error handling
* Rely not only on the FolderErrors event
* Request pull errors when opening the dialog
* Use "pullErrors" from FolderSummary
* Move code for directory error dialog into
  its own class

This should fix that sometimes obsolete errors
were still displayed or actually present errors
missing.
2018-11-03 21:30:17 +01:00
0ef2bf919a Remove duplicated status recalculation 2018-11-02 22:15:16 +01:00
b9a65ef113 Remove redundant poll interval defaults 2018-10-25 18:23:37 +02:00
a024e36ffd Rework reply/connection handling in SyncthingConnection
* Improve consistency
* Ensure all relevant requests are have finished before
  setting status to connected
2018-10-25 00:59:13 +02:00
2e67e6b2de Use signals for logAvailable() and qrCodeAvailable() 2018-10-20 22:08:25 +02:00
8a77cdf516 Pass callbacks for requestLog() and requestQrCode() by ref 2018-10-18 23:34:59 +02:00
cf22f6b16a Make all request...() methods consistently public 2018-10-10 22:15:12 +02:00
533a5d0939 Use override 2018-10-10 21:26:46 +02:00
87a10c5b33 Allow hiding Plasma applet in certain states
See https://github.com/Martchus/syncthingtray/issues/23
2018-10-10 17:48:48 +02:00
73c44591d5 Consume disk events in SyncthingConnection
First step to:
* Show history of most recent file changes
* Notify about file changes
  (see https://github.com/Martchus/syncthingtray/issues/7)
2018-08-04 22:06:31 +02:00
39dd98354a Request Syncthing version 2018-07-30 23:00:40 +02:00
3549a4cdef Compute overall statistics 2018-07-30 23:00:22 +02:00
db4b032179 Show connected device names in additional status 2018-06-27 17:38:22 +02:00
2c27cc27d0 Add signals for new devices and directories 2018-05-01 20:43:15 +02:00
b61592fbbd Allow editing Syncthing config via JavaScript 2018-04-07 22:01:54 +02:00
c94b34595b Improve properties of SyncthingConnection 2018-04-04 20:18:42 +02:00
146d4870e4 Refactor preventing unwanted error messages
* See https://github.com/Martchus/syncthingtray/issues/15
* Not tested yet
2018-04-02 20:35:30 +02:00
c7ea5974e4 Allow editing config via syncthingctl 2018-04-01 23:01:37 +02:00
754cd0c2e1 Allow printing current config 2018-04-01 20:21:51 +02:00
023279142b Fix "sync complete" notifications during upload
* Distinguish between local and remote FolderCompletion events
* Do not request completion via REST-API, the FolderCompletion
  event covers both - local and remote changes.
2018-03-31 22:07:05 +02:00
bfd51fcaff Refactor SyncthingConnection::readDirEvent() 2018-03-31 21:19:53 +02:00
b12988e342 Apply clang-format from LLVM 6 2018-03-24 17:06:16 +01:00