Replace recursive layout loading with dynamic loading
Summary: The previous code worked as follows: - when we show a menu we would emit aboutToShow on the root item - we would then recursively load the /entire/ menu structure before emitting we were done. Because we only sent aboutToShow on the root menu, any clients that were connected to a submenu's aboutToShow never got an aboutToShow signal. This patch does the (in retrospect far more obvious) fix of just calling aboutToShow dynamically on each submenu when it's time to show, then updating the menu whilst it's showing. Test Plan: Dynamic menus now work, DBus traffic is considerably down Reviewers: #plasma, broulik Reviewed By: #plasma, broulik Subscribers: broulik, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4059
parent
1754c135
Please register or sign in to comment