Commit Graph

1421 Commits

Author SHA1 Message Date
Martchus 037c5a309b Fail tests early when Syncthing exists unexpectedly or cannot be started at all
Before tests ran until a timeout was reached and failed not with a clear
error message stating the root cause. This is now the case and can be
tested by setting `SYNCTHING_PATH` to e.g. false/true or a non-existing
binary.

This may help with the test issue mentioned in
https://github.com/Martchus/syncthingtray/issues/144 although I could
never reproduce the concrete error message myself.
2022-10-29 21:22:21 +02:00
Martchus 99f8442567 Do not pretend `SyncthingTestInstance` inherits from `QObject` 2022-10-29 21:05:13 +02:00
Martchus 48d78c1758 Pass context when connecting signals for tests 2022-10-29 20:32:54 +02:00
Martchus 07dc4cac60 Avoid triggering the setup detection of wizard automatically when going back
Otherwise it is not really possible to go back to the start page. Besides,
triggering the setup detection again explicitly might make it more obvious
what's going on.
2022-10-28 15:00:11 +02:00
Martchus 84acab68aa Determine whether autostart is enabled in wizard's setup detection once
Instead of checking whether autostart is enabled each and every time it is
used. Also show it in details from setup detection.
2022-10-28 14:10:19 +02:00
Martchus 9c3f6da89f Set autostart checkbox state of wizard to current autostart state 2022-10-28 13:55:10 +02:00
Martchus bb59f6a230 Streamline coding style in autostart-related code 2022-10-28 13:54:16 +02:00
Martchus 992e754dd7 Enable wizard without WIP flag
The wizard likely still needs improvement but it is time to get more
feedback.
2022-10-27 19:23:56 +02:00
Martchus 1b1b9129be Avoid icon being rendered to big in wizard under Windows
Apparently Qt isn't handling the icon size very well (icon ends up clipped)
on its own so let's just use a pixmap icon of fixed size.
2022-10-27 19:19:13 +02:00
Martchus 328417d1f3 Fix compilation without systemd support 2022-10-24 15:37:53 +02:00
Martchus 8e484f246e Allow overriding Syncthing config dir via environment variable 2022-10-23 15:05:47 +02:00
Martchus 67c4e806bd Fix detection of disabled Syncthing systemd unit in wizard
`isUnitAvailable()` would return false for disabled units (that could be
enabled) so `canEnableOrStart()` must return true even if only
`isDisabled()` returns true.
2022-10-22 21:31:03 +02:00
Martchus 74580d382b Allow testing systemd integration with a test unit file 2022-10-22 13:01:25 +02:00
Martchus 6594a667af Update translations 2022-10-22 12:40:57 +02:00
Martchus 77cea5aead Tie suppressing notifications to "reconnect integrations" of launcher/service
So suppressing notifications by either the launcher status or service
status can be enabled/disabled together with the re-connect tweaking. This
makes more sense than having it unconditionally enabled and makes the
presence of the feature (and when it is effective) also more visible to
users.
2022-10-22 12:32:24 +02:00
Martchus 525b2c2f94 Improve tracking of whether Syncthing has been stopped manually
* Don't consider the proccess manually stopped by default; otherwise that's
  considered to be the case even though the launcher isn't used at all
* Unset the service being manually stopped only when there's an actual
  state transition to running; otherwise we'd immediately unset the flag
  after manually stopping the service
2022-10-22 12:06:18 +02:00
Martchus ba0f60c6a8 Update translations 2022-10-18 22:31:02 +02:00
Martchus b8cbe47099 Prevent doing setup detection when closing wizard in main config step 2022-10-18 22:25:51 +02:00
Martchus 9fd0dd3201 Don't allow continuing wizard if selected option is hidden
The selected option might be hidden if it was previously selected but then
became inavailable after running the setup detection again.
2022-10-18 22:21:27 +02:00
Martchus 8e652217d8 Ensure wizard's setup detection is really reset
So when going back to the detection state the previously selected config is
not used anymore (even though it isn't selected anymore).
2022-10-18 22:19:57 +02:00
Martchus db60c73d8d Fix missing whitespace 2022-10-18 21:53:15 +02:00
Martchus 056a8049f7 Update info about Plasmoid-sizing for Plasma 5.26 2022-10-17 23:19:28 +02:00
Martchus f0ebd75ce0 Add missing German translations 2022-10-17 23:05:30 +02:00
Martchus f8a1c35735 Fix typo in German translation 2022-10-17 21:40:14 +02:00
Martchus 9c6f8fb07e Update README regarding Plasma-related limitations/workarounds 2022-10-17 21:38:40 +02:00
Martchus 833d2b78e2 Avoid running wizard test in parallel with other tests launching Syncthing 2022-10-16 18:21:47 +02:00
Martchus 11e0b4159e Update translations 2022-10-16 18:10:42 +02:00
Martchus a3e5825217 Improve wizard tests
* Allow setting Syncthing path and port like it is possible with other
  tests
* Test configuring currently running instance
* Avoid race condition; one must subscribe to `settingsChanged` before
  applying changes
2022-10-16 18:10:14 +02:00
Martchus 2dffb7ac97 Do not change launcher settings when currently running instance selected in wizard
The currently running instance might be from the launcher itself as the
wizard might have been started after configuring the launcher manually. So
let's just not mess with the launcher settings at all in this case.
2022-10-16 18:07:11 +02:00
Martchus b6df8be85a Extend wizard tests to actualy apply launcher settings 2022-10-16 16:10:50 +02:00
Martchus 9f92e340b9 Add basic tests for wizard 2022-10-16 15:08:29 +02:00
Martchus 4c20ecb131 Add AppStream file for Dolphin integration 2022-10-13 19:35:30 +02:00
Martchus b0e6c6d574 Add release info in Plasmoid AppStream template 2022-10-13 19:34:49 +02:00
Martchus 39464d0613 Use same indentation in Plasmomid AppStream template as in regular template 2022-10-13 19:34:24 +02:00
Martchus 66b33fd7d2 Add special AppStream template for Plasmoid
It needs to be an add-on extending the Plasma shell. As this is a special
case it makes sense to add a special template overriding the one from
c++utilities.
2022-10-13 00:06:04 +02:00
Martchus f7290b2ac1 Update release date 2022-10-12 23:23:58 +02:00
Martchus fa7b0a5a2f Add release date 2022-10-12 23:18:13 +02:00
Martchus cd53a623f1 Prevent AppStream validation message `asv-content-rating-missing`
See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 21:01:06 +02:00
Martchus 2f41fc9337 Update translations 2022-10-11 19:33:15 +02:00
Martchus a79a594238 Show Syncthing version in Dolphin integration
So even if there are no actions there's at least some bit of information
showing to verify the integration could connect to Syncthing.
2022-10-11 18:55:50 +02:00
Martchus af1529c396 Show note in Dolphin integration when current directory is not shared
* Otherwise it can be confusing if no actions are present
* See https://github.com/Martchus/syncthingtray/issues/159
2022-10-11 18:46:13 +02:00
Martchus d7adcaf950 Improve documentation of Dolphin integration
See https://github.com/Martchus/syncthingtray/issues/159
2022-10-11 18:38:56 +02:00
Martchus 65c12ba4f8 Revert accidental changes to `traywidget.ui` 2022-10-09 12:20:30 +02:00
Martchus 157aec85ea Let appstream screenshot URL point to raw images 2022-10-08 23:53:25 +02:00
Martchus 836f51d6f6 Update translations 2022-10-08 23:43:08 +02:00
Martchus 5fd07ee1c0 Allow opening wizard from Plasmoid 2022-10-08 23:42:29 +02:00
Martchus 63acf60cd8 Fix autostart configuration via wizard 2022-10-08 23:41:58 +02:00
Martchus ec85052c20 Allow enabling devel modes via env variables
Using CLI args is not possible for plugins (such as the Plasmoid).
2022-10-08 22:44:00 +02:00
Martchus a0297f67ba Add setting to keep track whether it is the Plasmoid 2022-10-08 22:20:06 +02:00
Martchus d4720f464f Add appstream metadata body for Plasmoid 2022-10-08 22:11:06 +02:00