Martchus
0a2eae6542
Improve libsyncthing
...
* Update Syncthing version
* Use utilities from https://github.com/syncthing/syncthing/pull/5871
* Remove useless use_standard_filesystem()
2019-08-03 16:31:23 +02:00
Martchus
4e60153070
Update translations
2019-08-02 17:09:05 +02:00
Martchus
db16727956
Show launcher log also before opening settings dialog
2019-08-02 17:05:48 +02:00
Martchus
1982d26295
Remove code duplication in SyncthingApplet
2019-08-01 19:08:58 +02:00
Martchus
2363e9a7d4
Update status icon and tooltip when changing settings
...
Required because the reconnect interval which might be included
in the tooltip might have changed.
2019-08-01 19:07:58 +02:00
Martchus
6057b2cb2c
Map context menu coordinates to top-level widget
...
Map context menu coordinates to top-level widget if the top-level
widget is a QMenu. Otherwise the context menu is not displayed at
the right position. Not sure why this workaround is required.
The check for QMenu is required. Otherwise the "windowed" mode
enabled via --windowed CLI argument would not work anymore. In
this mode the top-level window is a regular window.
Adding the window flags Qt::Sheet or Qt::Dialog to the QMenu
would help as well but that prevents closing the menu (see
https://github.com/Martchus/syncthingtray/issues/41 ).
2019-07-31 22:26:11 +02:00
Martchus
d07bdba5de
Add parent to context menus
...
This is recommended in a Wayland porting guide.
2019-07-31 22:26:00 +02:00
Martchus
19816437ea
Use a different parent for dialogs
...
This allows customizing the tray menu/widget using style sheets
without affecting the dialogs.
2019-07-31 20:47:19 +02:00
Martchus
353f1e2463
Allow to distinguish icon colors within UI and system tray
...
This is useful because sometimes the background color of the system
tray is dark but the overall system UI still uses a light theme.
For the Plasmoid this should never be the case, though. Hence the
extra settings are not available there.
2019-07-31 20:16:43 +02:00
Martchus
59e0f93c1c
Add note regarding Wayland
2019-07-31 20:06:32 +02:00
Martchus
2c9bf8961f
Update documentation for adding translations
2019-07-31 20:04:25 +02:00
Martchus
13cc4b8775
Set Go linker flags for libsyncthing
2019-07-29 18:00:42 +02:00
Martchus
fbd0174086
Update libsyncthing
2019-07-29 17:59:58 +02:00
Martchus
972f7b2776
Stop libsyncthing when stopping the application
2019-07-29 16:00:41 +02:00
Martchus
f9eba2d012
Update translations
2019-07-28 22:05:27 +02:00
Martchus
02971698cf
Show libsyncthing version as tooltip
2019-07-28 22:01:30 +02:00
Martchus
4b6cb69586
Fix missing exports
2019-07-28 21:34:51 +02:00
Martchus
9b924d4138
Fix closing tray menu
2019-07-28 10:56:59 +02:00
Martchus
5e39683baa
Document Wayland issues
2019-07-27 15:43:20 +02:00
Martchus
9b8191c105
Use consistent prefix for static member variables
2019-07-27 15:11:50 +02:00
Martchus
d8f35aceaf
Don't use deprecated QProcess::finished() overload
2019-07-27 15:07:26 +02:00
Martchus
1bdba31c70
Improve behavior under Wayland
...
* Add workaround for using QCursor::pos()
* Set window flags and parent of TrayMenu to it is shown
like a context menu
2019-07-27 15:04:14 +02:00
Martchus
9f9b9124a4
Improve code of dir/dev/download views
...
* Reduce indentation
* Remove unused #include <QCursor>
* Map context menu position to viewport
* Use const when possible
2019-07-27 11:15:13 +02:00
Martchus
03d15d5bfb
Update notes about Plasmoid testing
2019-07-26 22:02:27 +02:00
Martchus
bcb81e15b5
Apply clang-format
2019-07-26 22:02:11 +02:00
Martchus
fb3c9e9635
Adjust launcher/service apply yet another time
...
* Only reconnect later if the launcher/service is actually running
* Don't try to reconnect if systemd unit is not available
2019-07-26 16:36:48 +02:00
Martchus
bb65a97889
Document SyncthingService
2019-07-25 19:54:37 +02:00
Martchus
1ce8ec9c5f
Consider systemd status only relevant if unit is available
...
If the unit is not available is is not possible to tell whether the
service is running or not so the systemd status should not be
considered yet. As soon as the status changes Systemd::apply() is
executed again and the status possibly considered.
2019-07-25 18:32:52 +02:00
Martchus
7e46096feb
Log directory/device list renewal when event logging enabled
...
This is useful for debugging to track (unnecessary) renewal of those
lists.
2019-07-25 18:27:38 +02:00
Martchus
205189c34a
Update translations
2019-07-21 22:37:23 +02:00
Martchus
62fc662692
Add tooltips to plasmoid statistics
2019-07-21 22:33:52 +02:00
Martchus
248af38f8b
Merge pull request #40 from yan12125/patch-1
...
README.md: add Mac OS X/macOS-related contents
2019-07-21 17:06:15 +02:00
Chih-Hsuan Yen
cbdee54f04
README.md: add Mac OS X/macOS-related contents
2019-07-21 22:41:06 +08:00
Martchus
6fcc2e2208
Apply clang-format
2019-07-20 20:32:34 +02:00
Martchus
c378b17de4
Don't abuse organization domain for website in AboutDialog
2019-07-20 20:32:15 +02:00
Martchus
f4097d3d79
Fix positioning of context menus under Wayland
...
Does not cover positioning the tray widget itself yet.
2019-07-20 18:56:20 +02:00
Martchus
2c95a15f1a
Update translations
2019-07-20 17:15:32 +02:00
Martchus
bd3e0f15e8
Polish autostart code
2019-07-20 17:12:55 +02:00
Martchus
16f6d2fb76
Merge pull request #39 from yan12125/macos-autostart
...
Allow autostarting syncthingtray on macOS as launch agents
2019-07-20 09:34:40 +02:00
Chih-Hsuan Yen
1e90925fba
Allow autostarting syncthingtray on macOS as launch agents
2019-07-20 12:10:32 +08:00
Martchus
61958c5046
Polish libsyncthing
...
* Adapt tests
* Remove duplicated code
* Stop Syncthing from a different thread since
it blocks until Syncthing has stopped
2019-07-18 17:21:53 +02:00
Martchus
79caeda00e
Merge pull request #38 from yan12125/macos-part1
...
macOS fixes/improvements part1
2019-07-18 10:19:03 +02:00
Chih-Hsuan Yen
a92ec9e546
Add the default config path on macOS
2019-07-18 11:07:37 +08:00
Chih-Hsuan Yen
829e79929e
Hide the application icon from Dock and Command+Tab switcher
...
Info.plist.in is $prefix/share/cmake-2.14/Modules/MacOSXBundleInfo.plist.in
with an additional LSUIElement key.
2019-07-18 10:58:37 +08:00
Martchus
a1658dcf83
Apply clang-format
2019-07-17 23:14:34 +02:00
Martchus
972b062fb1
Fix build without libsyncthing
2019-07-17 23:14:24 +02:00
Martchus
708334443f
Add option to unify tray menus
...
* Don't create context menu
* Show the "Close" action and the "Internal errors"
action in the tray widget
* Use this by default on Mac OS
2019-07-17 19:07:58 +02:00
Martchus
038225936e
Base libsyncthing on official library refactoring
2019-07-17 17:53:36 +02:00
Martchus
fe332078f1
Improve taking the launcher status into account when connecting
...
* Take the time the launcher is active into account (in the same
way as it is done for the systemd service)
* Fix case when systemd service would be relevant but configured
to consider the launcher status
2019-07-13 17:59:48 +02:00
Martchus
4b246d4b4d
Improve SyncthingProcess and SyncthingLauncher
...
* Add documentation
* Remove leftovers
* Ensure all members are initialized
* Improve coding style
2019-07-13 16:42:19 +02:00