Commit Graph

104 Commits

Author SHA1 Message Date
548251f538 Fix positioning issues with remote file browser 2024-04-06 19:38:54 +02:00
93b5d66875 Allow browsing remote/global files 2024-04-05 01:30:00 +02:00
6b7d916914 Make autostart entry for GNU/Linux more robust
* Add `--wait` parameter so Syncthing Tray will wait until the tray becomes
  available; this might help if Syncthing Tray is started by the desktop
  environment before the tray is available (unless it is started too soon
  even for that)
* Add `X-LXQt-Need-Tray=true` to ensure the system tray is available on
  LXQt because just `--wait` might not be sufficient here (according to
  https://github.com/Martchus/syncthingtray/issues/240); this is in-line
  with the autostart entry of https://github.com/lxqt/lxqt-powermanagement
2024-03-16 00:14:44 +01:00
a16a343639 Update translations 2024-03-09 11:55:48 +01:00
ae77b3071a Clarify the meaning of libsyncthing's directories via tooltips 2024-03-09 11:53:13 +01:00
cfc091d4fb Keep fallback to config directory if no data directory is configured for libsyncthing 2024-03-09 11:51:33 +01:00
8bc45de18d Remove unused header in setupdetection.h 2024-03-09 11:40:15 +01:00
9ed9f94040 Fix setting data directory when starting libsyncthing
See https://github.com/Martchus/syncthingtray/issues/237
2024-03-09 11:37:43 +01:00
53f4ac6fcb Consider metered setting also when autostarting Syncthing 2024-03-07 01:10:34 +01:00
0db27b14b0 Update translations 2024-02-29 14:12:02 +01:00
1e9d9274cb Apply setting to stop on metered connection immediately
Just setting this when launching is not enough because then enabling or
disabling the setting while Syncthing is already running doesn't work.
2024-02-26 16:08:12 +01:00
dff6bcab67 Apply change of global.h template 2024-02-22 19:43:14 +01:00
8372dfbcaa Update translations 2024-02-22 14:31:16 +01:00
827251004e Configure checkboxes for metered connection also if there's no launcher
Otherwise the checkbox is just visible but doesn't do anything.
2024-02-19 18:33:27 +01:00
45c48d989b Improve form layout in connection option page 2024-02-19 18:31:25 +01:00
1e56f3dd82 Fix consistency issue with punctuation in German translation 2024-02-18 15:39:09 +01:00
960f43f82a Update translations 2024-02-17 18:12:24 +01:00
211a7942ef Apply clang-format 2024-02-17 18:11:58 +01:00
d2dc15fdde Make it more clear when the options regarding metered connections are not available
Since this feature will likely not be available in mingw-w64-based builds of
the next release (due to missing cppwinrt) it is important to make it clear
when those options don't actually work. With this change the checkboxes are
completely disabled in case the feature is not available (instead of just
providing the information via the tooltip).
2024-02-17 18:07:46 +01:00
274a220c2c Log available network information backends in the error case 2024-02-17 02:06:38 +01:00
f4aa2b22ce Avoid starting Syncthing unintentionally when connection not metered anymore 2024-02-17 00:04:19 +01:00
3b8d4f3d89 Fix crash when network information cannot be loaded 2024-02-16 20:03:51 +01:00
4a61f552a2 Update translations 2024-02-15 22:22:28 +01:00
643f0bf5ff Fix initialization of m_relevantConnection 2024-02-15 22:22:18 +01:00
af26b47105 Update translations 2024-02-15 22:13:38 +01:00
ed1ac2c2ed Fix sizing/wrapping/clipping problem of note in connection settings 2024-02-15 22:01:21 +01:00
30fa37f048 Allow to pause automatically on metered network connections
* Allow to pause all devices on metered network connections (devices will
  be automatically resumed when network is no longer metered)
* Allow to stop Syncthing when it was started via the built-in launcher
  on metered network connections (it will be automatically started again
  when the network connection is no longer metered)
* See https://github.com/Martchus/syncthingtray/issues/231
2024-02-15 21:02:18 +01:00
7090bdcdc9 Update translations 2024-01-30 23:11:15 +01:00
57e3ad67ea Avoid inconsistent use of config defs in syncthingwidgets for unity builds
Otherwise unity builds fail due to macro redefinitions. It doesn't really
matter what name is used in the web view files anyway (as it just changes
some environment variables used for debugging).
2024-01-30 22:56:19 +01:00
0f1bcae534 Fix build with c++utilities change to add header for compile definitions
* Add include directory for testhelper library manually as using the
  imported target was not possibly
* Fix visibility when using libsyncthing in syncthingwidgets
* Update changed global headers along the way
2024-01-30 22:35:47 +01:00
01fe57492c Add and update tab-stops explicitly where default order is wrong 2024-01-07 22:30:48 +01:00
939594aea6 Update translations 2024-01-02 15:22:15 +01:00
26f468471a Revert "Use QWizard::AeroStyle also with Qt 6.7's windows11 style"
This reverts commit 8cac56c246 and extends
the related comment as the new Windows 11 style actually supports custom
palettes and then wizard's aero style breaks in the same way as with
Fusion.
2023-12-23 23:51:44 +01:00
549be45b55 Mock setting the autostart path in the wizard test
This test would keep the autostart disabled but override an existing
autostart entry (see https://github.com/Martchus/syncthingtray/issues/221).
With this change it will no longer override an existing entry. Reading and
writing the autostart entry is now mocked and properly checked.
2023-12-22 17:33:21 +01:00
8cac56c246 Use QWizard::AeroStyle also with Qt 6.7's windows11 style
This is likely going to work as the `windows11` style seems to be a
continuation of the `windowsvista` so let's give it a try.
2023-12-15 15:50:08 +01:00
81e9221cfb Update translations 2023-12-11 21:21:37 +01:00
c3a426a264 Fix compatibility with Qt 5 in web view code 2023-12-05 12:34:22 +01:00
a125ac46e4 Update translations 2023-12-05 11:48:27 +01:00
134aa448f7 Always customize scrollbars in built-in web view
* Use colors from palette; with this the custom scrollbars should always
  be a plus (and not only when the Breeze style is used)
* React to palette changes at runtime
2023-12-03 21:15:29 +01:00
01dceb588a Allow configuring web view console logging via environment variable 2023-12-03 21:02:34 +01:00
2ceb9a31b0 Fix clazy warning about usage of arg() 2023-12-03 18:56:43 +01:00
6d81d33174 Style scroll bars of built-in web view according to Breeze style if used
* The code is disabled under many platforms where the Breeze style is
  unlikely to be used anyways.
* The code is disabled if Qt is older than 6.1 because only then the name
  of the current style can be determined.
2023-12-02 19:19:18 +01:00
a6f0c2f5e1 Improve logging JavaScript messages of built-in web view
* Don't show configuration warning when enabled
* Log messages of all levels and log level when using Qt WebEngine
2023-12-02 19:07:00 +01:00
04a8905a83 Allow opening Syncthing directly when clicking on tray icon
This might be useful if minimalism is desired or to avoid positioning
issues on Wayland.
2023-11-10 14:33:03 +01:00
9360bf8bc8 Fix grammar mistakes in German translation after replacing "Verzeichnis" with "Ordner" 2023-11-10 13:17:16 +01:00
7c932fdb31 Update translations 2023-11-07 11:58:55 +01:00
b4879bb23e Hide/show advanced configuration properly using setRowVisible()
This makes the code simpler and avoids inconsistent spacing. Unfortunately
this function has only been introduced in Qt 6.4 so the old code has to
stay for older Qt versions.
2023-11-06 16:02:12 +01:00
a9eb8e3237 Update translations 2023-11-06 15:16:49 +01:00
fada3c98dd Allow configuring long-polling timeout 2023-11-06 15:06:40 +01:00
2b58266d8b Update translations 2023-11-06 12:47:32 +01:00