D28146: [applets/appmenu] Use libtaskmanager for appmenus

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Mar 19 20:47:59 GMT 2020


broulik accepted this revision.
broulik added inline comments.
This revision is now accepted and ready to land.

INLINE COMMENTS

> appmenumodel.cpp:124
> +    m_tasksModel->setScreenGeometry(geometry);
>      emit screenGeometryChanged();
>  }

I think you can just connect this signal to our signal in the constructor and then remove the if check here

> appmenumodel.cpp:150
>  
> -    if (!id) {
> -        setMenuAvailable(false);
> +    if ((!objectPath.isEmpty()) && (!serviceName.isEmpty())) {
> +        setMenuAvailable(true);

No need for parentheses

REPOSITORY
  R120 Plasma Workspace

BRANCH
  appmenu-use-libtm (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D28146

To: cblack, #plasma, broulik
Cc: broulik, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200319/63aa42b5/attachment.html>


More information about the Plasma-devel mailing list