<table><tr><td style="">marten created this revision.<br />marten added reviewers: dantti, broulik, ngraham.<br />Herald added a subscriber: kde-utils-devel.<br />marten requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25186">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This means the internal enabled/disabled state of the printer, as tracked by isPaused in plasmoid/package/contents/ui/PrinterItem.qml and used to control the state of the play/pause button and the opacity of the printer name.  If the printer state is changed by some external action, e.g. CUPS detecting a printer problem or the cupsenable/cupsdisable commands being used, the applet does not notice the change and still retains the previous state.</p>

<p>This change watches for state changes from the PrinterModel and updates the internal state (and therefore the GUI) appropriately.  It could be more selective, but I've tried to guard against spurious property changes (so hopefully signals and redrawing) by only changing the isPaused property if necessary.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Run the unmodified print manager, observe that a working printer shows the name in black and the hover button shows the "pause" icon.  Use the cupsdisable command to disable the printer, note that the UI does not change.</p>

<p>Run the modified print manager, observe that if a printer is disabled using the cupsdisable command then the printer name turns grey and the hover button shows the "play" icon.  Enable the printer using the cupsenable command and observe that the printer name returns to black and the hover button shows "pause" again.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R363 Print Manager</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25186">https://phabricator.kde.org/D25186</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plasmoid/package/contents/ui/PrinterItem.qml</div></div></div><br /><div><strong>To: </strong>marten, dantti, broulik, ngraham<br /><strong>Cc: </strong>kde-utils-devel<br /></div>