Commit 7b2fbc2
fix(tray): GNOME + AppIndicator compatibility
The account submenu does not work in a standard (Ubuntu) GNOME environment,
for the following reasons:
* If the submenu is empty, no `aboutToShow` event is sent. This patch
pre-populates the submenu.
* If the submenu is updated when handling `aboutToShow`, it will be
closed immediately. This patch causes the event handler to only
fetch the activities in this case. It will still enable dynamic
updates for KDE, i.e. `dataChanged` will be called. In case of
GNOME, however, the menu is not marked visible, thus the
`dataChanged` handler will not update (and thus close) the menu.
However, since the tray menu is built when opening, the contents
will be relatively recent even there, though not updating.
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>1 parent d7576fc commit 7b2fbc2
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
705 | | - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
706 | 708 | | |
707 | 709 | | |
708 | 710 | | |
| |||
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
| 721 | + | |
719 | 722 | | |
720 | 723 | | |
721 | 724 | | |
| |||
807 | 810 | | |
808 | 811 | | |
809 | 812 | | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
| 845 | + | |
845 | 846 | | |
846 | | - | |
| 847 | + | |
847 | 848 | | |
848 | 849 | | |
849 | 850 | | |
| |||
0 commit comments