Commit Graph

1450 Commits

Author SHA1 Message Date
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
Martchus ff68dff5a0 Add autostart wizard page 2022-09-03 21:36:57 +02:00
Martchus b6f5d33647
Merge pull request #153 from sten0/add-debian-and-derivs-install-instructions
Make Debian (and derivatives) section more accurate
2022-09-02 23:35:59 +02:00
Nicholas D Steeves 300beb0a15
Make Debian (and derivatives) section more accurate
* Include the conventional copy & paste installation instructions that
most Ubuntu (and derivatives) users expect.

* Request that users test their operating system's app store, because
a potential Appstream bug would be highly visible and would negatively
affect initial user impressions.  Such a hypothetical bug should
ideally be found and fixed before Ubuntu 22.10's freeze, and certainly
before Debian 12's.

* Mention the backports repository, because otherwise users will
manually install packages for sid/unstable/testing/bookworm/12 onto
stable/bullseye/11.  These packages will be nonfunctional, will
malfunction, or will break the other package's dependencies.

* Remove link to Developer Information Tracker, because it may also
mislead users into creating FrankenDebian, and because it is not
supposed to be a user-facing page.
2022-09-02 16:29:09 -04:00
Martchus 36e9e98424 plasmoid: Assign margins in consistency with official Plasmoids
For instance, the NetworkManager Plasmoid uses these margins for its
ListView. It looks probably better than without margins (after removing
paddings with scroll page).
2022-09-01 22:32:17 +02:00
Martchus ae35d28494 Fix typo in README 2022-08-28 00:18:58 +02:00
Martchus adc65e2d16 Remove badges from README
* The licensing badge does not work anymore and the licensing topic is more
  complicated to fit into a badge anyways
* The release badge does not look good on its own and is redundant with
  GitHub's own UI since they've reworked it
2022-08-28 00:01:40 +02:00
Martchus 826614c336 Mention Debian package in README 2022-08-27 23:48:43 +02:00
Martchus eec8d2c131 Move download info for specific Linux distros above generic GNU/Linux section 2022-08-27 23:48:25 +02:00
Martchus 25b9116250 Show only relevant options in wizard and improve UI for displaying details 2022-08-27 23:35:15 +02:00
Martchus 468293c2b1 Show welcome page always as first page of the wizard
Otherwise the wizard would immediately start when accessed via settings
which is not very nice. Of course the instructions in the welcome page need
to be slightly adjusted.
2022-08-27 19:19:03 +02:00
Martchus a435cab604 Allow starting wizard from settings 2022-08-27 15:06:55 +02:00
Martchus 3bbbab035c Update translations 2022-08-25 22:33:59 +02:00
Martchus d079d526ec Avoid ugly padding next to scroll bar in Plasmoid
It is actually just the normal marging/padding Plasmoids normally have but
with the scroll bar it doesn't look good.

The margins would be automatically collapsed if the scroll view was the
immediate content item. However, that's not the case so we need to set the
according property manually using `Plasma.Representation`.
2022-08-25 22:33:30 +02:00
Martchus 6941a1195d Ensure the wizard's size is big enough 2022-08-25 21:47:20 +02:00
Martchus 9d28fbbefc Ensure icons in wizard's welcome page are present
* Provide icons for command link buttons because it looks rather bad when
  some of them are missing in the user's icon theme and are therefore not
  displayed at all
* Add icons to lists for bundling icons
2022-08-25 21:35:22 +02:00
Martchus 114faa6cf3 Improve attribution notice for icons
* State copyright and license
* See https://github.com/Martchus/syncthingtray/issues/150
2022-08-25 21:02:05 +02:00
Martchus 01f722c690 Unify code for about dialog image and attribution
It is the same for all components so define it at one place.
2022-08-25 20:35:02 +02:00
Martchus f2b1a0fe88 Update translations 2022-08-23 21:07:50 +02:00
Martchus f496e42006 Develop UI of wizard further
* Declare widgets for main config page via XML
* Add radio/check boxes for available options
* Improve formatting of report
2022-08-23 21:07:06 +02:00
Martchus c31b7b9ca8 Refactor wizard code
* Move code for setup detection into its own class
* Use separate wizard page to show setup detection report
2022-08-23 18:19:47 +02:00
Martchus 352d161144 Check for default launcher and service configuration in wizard 2022-08-23 12:31:43 +02:00
Martchus a48cf61333 Detect current Syncthing setup as first step of the wizard 2022-08-22 23:48:18 +02:00
Martchus 800cbcc286 Add hidden flag to enable WIP features
Supposed to be used for the wizard while it is WIP.
2022-08-22 21:59:34 +02:00
Martchus c9ac1c794b Allow portable configuration via `QtUtilities::getSettings()`
See https://github.com/Martchus/tageditor/issues/88
2022-08-20 16:19:08 +02:00
Martchus 347e9eccb2 Change "Void" to "Void Linux" to make it more clear and add link 2022-08-20 15:14:10 +02:00