Skip to content

kcm: Make savePrinter async

Mike Noe requested to merge work/noee/save-printer-refactor into master

Refactor to remove "waitTillFinished" pattern to eliminate the use of the nested event loop in the KCupsRequest.

Related: #16

Additionally, also fixes a warning about memory leak (clang NewDeleteLeaks)

Testing

This refactors saving of regular printer attributes as well as the default printer flag, which CUPS treats as a little different. Essentially, setting default printer automatically turns if off for the prev default printer.

So, test adding and changing a printer, changing both normal attributes and the default flag, together and separately.

Edited by Mike Noe

Merge request reports

Loading