Martchus
2ee1bc0c63
Discard previous item errors also on connect()
...
Because errors might be gone now and should be repopulated
if not.
2018-10-28 16:03:18 +01:00
Martchus
25ace0eb17
Fix condition to set status to disconnected
2018-10-28 15:39:15 +01:00
Martchus
32b2907e67
Split syncthingconnection.cpp
...
* Move methods for specific requests to its own file
2018-10-28 15:37:25 +01:00
Martchus
2862b6fd87
Re-enable all connection tests
2018-10-28 14:38:34 +01:00
Martchus
4c4a1ebd47
Don't unset m_has... on disconnect
2018-10-25 18:25:59 +02:00
Martchus
bb6825aa4c
Use timeout of 0 on first event call
2018-10-25 18:24:31 +02:00
Martchus
b9a65ef113
Remove redundant poll interval defaults
2018-10-25 18:23:37 +02:00
Martchus
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
Martchus
ece582db04
Fix visibility of "Show errors" button in plasmoid
2018-10-24 21:35:08 +02:00
Martchus
f380732068
Don't use std::function for handlers in testcode
...
Just use the lambdas directly and make if(handler) check
only if possible.
2018-10-21 21:07:43 +02:00
Martchus
76f214adf1
Ignore test for config too
...
This test randomly fails as well
2018-10-21 00:11:30 +02:00
Martchus
703225b410
Fix/improve CLI tests
...
* Adapt to interleaved output previously enabled in SyncthingTestInstance
* Make it work when verbose output for debugging is enabled
* Show which status line didn't match in case of an failure
* Disable flaky rescan tests in release mode
2018-10-20 23:48:24 +02:00
Martchus
97dab2a959
Disable flaky tests for release
2018-10-20 22:12:26 +02:00
Martchus
2e67e6b2de
Use signals for logAvailable() and qrCodeAvailable()
2018-10-20 22:08:25 +02:00
Martchus
c7bccf023a
Fix tests, make them more stable and verbose
...
Tests still sometimes fail when
* requesting QR code
* requesting rescan
2018-10-18 23:37:29 +02:00
Martchus
8a77cdf516
Pass callbacks for requestLog() and requestQrCode() by ref
2018-10-18 23:34:59 +02:00
Martchus
407514289a
Fix typo infos -> info
2018-10-18 23:34:02 +02:00
Martchus
8dde95fc82
Don't override defines when configuring optional behavior
2018-10-18 23:23:47 +02:00
Martchus
d138c6d9d1
Change address of dev in testconfig to something not reachable
...
in my local network - otherwise Syncthing panics for whatever
reason :-/
2018-10-14 23:31:19 +02:00
Martchus
dfff485fc4
Update testconfig to version 28
...
Not sure whether it actually works. Right now Syncthing crashes
under Arch Linux for me using the previous config and the updated
version.
2018-10-14 22:50:54 +02:00
Martchus
e410991012
Allow logging all API calls
2018-10-14 22:48:52 +02:00
Martchus
0ee25c1ae2
Fix warnings about QJsonValue ref
2018-10-12 00:21:05 +02:00
Martchus
00e0b58c86
Allow logging POSTs
2018-10-12 00:20:15 +02:00
Martchus
db6c8af414
Debug Syncthing crashes during testruns
2018-10-12 00:09:02 +02:00
Martchus
c031440c05
Use isLocal() in SyncthingConfig::syncthingUrl()
2018-10-10 22:47:03 +02:00
Martchus
99cb584249
Use non-standard port for tests
2018-10-10 22:45:49 +02:00
Martchus
cf22f6b16a
Make all request...() methods consistently public
2018-10-10 22:15:12 +02:00
Martchus
00e83e721d
Consider failure to request disk events fatal
...
Prevents endless polling for disk events in the error
case.
2018-10-10 22:05:48 +02:00
Martchus
533a5d0939
Use override
2018-10-10 21:26:46 +02:00
Martchus
87a10c5b33
Allow hiding Plasma applet in certain states
...
See https://github.com/Martchus/syncthingtray/issues/23
2018-10-10 17:48:48 +02:00
Martchus
de9259e545
Show whether filesystem watcher active
2018-09-15 18:25:02 +02:00
Martchus
7611ad1c8e
Propose use of SYNCTHING_TEST_TIMEOUT_FACTOR
2018-09-06 22:04:22 +02:00
Martchus
9599dcee81
Increase timeout for applying config
2018-09-06 21:58:41 +02:00
Martchus
791f1ccd33
Fix missing whitespace in German translation
2018-08-25 13:14:45 +02:00
Martchus
af120f1ae1
Update translations
2018-08-05 15:21:12 +02:00
Martchus
7e2eea8523
tests: Increase timeouts, use timeout factor everywhere
2018-08-05 15:20:21 +02:00
Martchus
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
Martchus
45ef2518e8
Apply clang-format
2018-08-04 15:47:43 +02:00
Martchus
39dd98354a
Request Syncthing version
2018-07-30 23:00:40 +02:00
Martchus
3549a4cdef
Compute overall statistics
2018-07-30 23:00:22 +02:00
Martchus
7598fef709
Update translations
2018-07-22 22:17:48 +02:00
Martchus
97e0253902
Fix some warnings, improve coding style
2018-07-22 22:09:59 +02:00
Martchus
77e75f543c
Add some more directory properties
2018-07-22 22:09:18 +02:00
Martchus
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
Martchus
5a80089cbd
Fix condition for outgoing traffic
2018-07-22 21:18:00 +02:00
Martchus
0acfdd7002
Use "rescan disabled" instead of "0 s"
2018-07-05 17:40:36 +02:00
Martchus
7166f6532a
Display overall status info in CLI
2018-07-05 17:39:35 +02:00
Martchus
db4b032179
Show connected device names in additional status
2018-06-27 17:38:22 +02:00
Martchus
f4622379ae
Prevent local sync complete notification during scan
2018-05-23 23:18:39 +02:00
Martchus
68f5565f1a
Discard sync complete event if paused
2018-05-17 18:34:05 +02:00