Commit Graph

1525 Commits

Author SHA1 Message Date
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
Martchus 3d8f66fe8e Update screenshots in appstream file 2022-10-08 22:03:00 +02:00
Martchus 4e19c98471 Add appstream file for Plasmoid 2022-10-08 21:56:46 +02:00
Martchus 127cd71856 Avoid re-positioning when pinning 2022-10-07 23:22:15 +02:00
Martchus ace27f9e9c Fix saving pinned state persistently 2022-10-07 23:15:25 +02:00
Martchus 0086873684 Update translations 2022-10-07 22:59:46 +02:00
Martchus 9220d66add Allow pinning tray menu (still experimental) 2022-10-07 22:59:17 +02:00
Martchus d82bc710fd Allow using system icons instead of ForkAwesome icons
* Allow using icons from freedesktop.org icon theme for most ForkAwesome
  icons if available
* Let's not use it for the nested list of details in the models for now
* See https://github.com/Martchus/syncthingtray/issues/121
2022-10-07 00:20:50 +02:00
Martchus 598fc0c114 Bump minor version 2022-10-07 00:19:36 +02:00
Martchus 3f5bc4d772 Fix inclusion of Connection::addConfigFromWizard() 2022-10-04 14:15:58 +02:00
Martchus a45bd8e60e Update translations 2022-10-04 10:53:14 +02:00
Martchus 87cb9914a6 Update libsyncthing to 1.22.0 2022-10-04 10:52:28 +02:00
Martchus 89290b99d4 Use quickwizard icon as it looks more apprpriate in higher sizes
That's at least the case for the Breeze icon theme.
2022-10-02 22:40:48 +02:00
Martchus 2abb468d93 Fix typo 2022-10-02 20:34:40 +02:00
Martchus 4896261ef9 Allow opening launcher settings from wizard in case of an error to check logs 2022-10-02 20:33:07 +02:00
Martchus 722e9f6e7d Avoid greeting new users with "insufficient configuration" error 2022-10-02 19:45:22 +02:00
Martchus b0d1197cb7 Implement launcher and systemd configuration in wizard 2022-10-02 19:24:26 +02:00
Martchus db69a148a9 Avoid showing default/uninitialized timestamp of libsyncthing version 2022-10-02 19:23:46 +02:00
Martchus 99872b262e Move setting connection config from wizard into its own function 2022-10-02 14:41:28 +02:00
Martchus bd5b93d311 Implement completion of wizard
Applying settings is still only implemented for one of the cases.
2022-10-01 22:25:33 +02:00
Martchus 442aee992a Unify code for showing wizard 2022-10-01 20:25:21 +02:00
Martchus ae10aaf0a2 Add missing include in `syncthingicons.h` 2022-10-01 18:12:25 +02:00
Martchus f290dec65c Develop wizard further 2022-10-01 18:11:48 +02:00
Martchus 4f58b2cb7e Fix determining whether GUI address is local
The port must be stripped from the address before passing it to
`isLocal()` which only expects a hostname.
2022-09-25 22:40:37 +02:00
Martchus 3320f712db Fix condition when making Syncthing URL
TLS is preferred when the address is *not* local.
2022-09-25 22:13:44 +02:00
Martchus a86ac6896f Add link to Gentoo overlay 2022-09-22 19:40:20 +02:00
Martchus 24e1556f64 Update minimum required Qt version
Builds with Qt 5.6 are no longer conducted so only the latest
Qt 5 or 6 version is tested anymore.
2022-09-20 20:58:01 +02:00
Martchus 6e6fbf757b Fix buffering further output in `SyncthingProcess` without event loop
When the calling code does not return to the event loop (like the CLI test)
we need to run the event loop internally to make sure `bufferOutput()` is
called as of ecd730fd49.
2022-09-18 19:59:46 +02:00
Martchus 9865b2286f Develop wizard further
* Add page to apply settings
* Add page to show final result
* Fix updating systemd checkbox (`isVisible()` did not work because when
  the function is running the whole page is not visible)
* Enable systemd integration by default if either the user service or the
  system service are running
* Fix typo
2022-09-17 23:10:58 +02:00
Martchus ecd730fd49 Avoid crash when invoking short-lived process via `SyncthingProcess`
At least when using Qt 6 I could reproduce crashes very often when invoking
`syncthing -version` as part of the wizard's setup detection (inside
a `QIODevice::readAll()` call).

I suppose the problem is that the callback `bufferOutput()` is already
invoked  on another thread and emitting the next `readyRead()` signal while
Qt is still handling the previous `readData()` call. Continuing reading
from the pipe only after `readData()` returns should fix it. At least it
does not crash anymore with that change in the wizard's setup detection.
2022-09-17 22:52:26 +02:00
Martchus 15934b6e87 Decouple ABI version from API version
Set the ABI version (used in so/DLL name) to 2 and increment it on an ABI
break (but only once within one release cycle). This way we don't need to
increment it on every patch release but also don't need to make a new major
release on every ABI break.

Keep the API version as is (using the semantic versioning format).
2022-09-11 13:16:34 +02:00
Martchus 5554ba4ffa Set window icon of wizard 2022-09-11 12:58:47 +02:00
Martchus f6db20bed8 Bump patch version 2022-09-11 12:58:25 +02:00
Martchus ab74142dc2 Add missing include for dialog utils 2022-09-06 16:58:25 +02:00
Martchus f7af2d5c7d Fix compilation of new wizard code against Qt 6 2022-09-06 16:24:53 +02:00
Martchus ead679203f Set margin of search button correctly (to not affect focus scope) 2022-09-06 10:54:04 +02:00
Martchus 4e1d4501c0 Update libsyncthing to v1.21.0 2022-09-06 10:46:23 +02:00
Martchus badfd94a38 Fix right margin of Plasmoid's search button 2022-09-05 23:01:04 +02:00
Martchus dd6b79360a Update translations 2022-09-05 22:56:19 +02:00
Martchus 99a7bd1a01 Hide tab texts in Plasmoid by default to avoid problematic overflow behavior 2022-09-05 22:54:28 +02:00
Martchus 1a71d8b534 Update translations 2022-09-05 22:18:56 +02:00
Martchus 8ea158aa23 Fix auto-detection of dark color theme in Plasmoid
* Remove `0 &&` in condition for making `QPalette` from Plasma theme
* Set `WindowText`/`Window` of `QPalette` in legacy case so
  `isPaletteDark()` works
* Set the icon manager's palette from the beginning (and not only if the
  Plasma theme changes)
2022-09-05 22:18:41 +02:00
Martchus 2e961c489d Update translations 2022-09-05 22:02:01 +02:00
Martchus 66948336d5 Allow to disable tab texts (to shown only icons anymore)
When configuring a smaller size for the Qt Widgets based UI it might be
preferred to show only the icons instead of having the tab buttons
overflow.
2022-09-05 21:56:22 +02:00
Martchus fd377cc5ac Increase default size to avoid overflow of tab buttons by default 2022-09-05 21:19:22 +02:00
Martchus e1ac6fb29b Update translations 2022-09-03 21:36:57 +02:00
Martchus c0a6482c9d Fix typos in naming of wizard UI widgets 2022-09-03 21:36:57 +02:00