Assuming this is the same problem as https://bugs.launchpad.net/appmenu-qt/+bug/775278 , this bug happens because when the window goes to the tray, bamf says it has closed => after 5 seconds indicator-appmenu forgets about the association between the window and its menubar => no menubar after restoring the window.
The solution I applied in appmenu-qt is to register the window again when the window is brought back.
Assuming this is the same problem as https:/ /bugs.launchpad .net/appmenu- qt/+bug/ 775278 , this bug happens because when the window goes to the tray, bamf says it has closed => after 5 seconds indicator-appmenu forgets about the association between the window and its menubar => no menubar after restoring the window.
The solution I applied in appmenu-qt is to register the window again when the window is brought back.