gnome-shell-extension-appindicator
gnome-shell-extension-appindicator copied to clipboard
update and open menu if there's no entries
This PR (partially) fixes #494.
QQ is an IM app who provides no menu entries before user logged in, and updates it when logged in. But it probably does not emit a LayoutUpdated
signal before updating menu so its tray icon menu can never open until appindicator restarts (by disabling the extension or ending gnome session). Here we try updating entries before opening an empty menu. Only primary click and secondary click will trigger an update.
Wondering if there are better solutions...