D24070: Don't use toolTipMainText to show info, rather use the second line

Kai Uwe Broulik noreply at phabricator.kde.org
Tue Dec 10 16:01:29 GMT 2019


broulik added a comment.


  You can just do something like
  
    var parts = [];
    if (powerManagementDisabled) {
        parts.push(i18n("Powermanagement disabled"));
    }
    if (pmSource.data["AC Adapter"] && pmSource.data["AC Adapter"]["Plugged in"]) {
        parts.push(blabla);
    } else {
        parts.push(blablabla);
    }
    parts.push(whatever other texts);
    return parts.join("\n");

REPOSITORY
  R120 Plasma Workspace

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

To: mthw, ngraham, #vdg, #plasma, broulik, ndavis
Cc: ndavis, broulik, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, 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/20191210/ac4adb46/attachment-0001.html>


More information about the Plasma-devel mailing list