[plasma/print-manager/Plasma/6.6] src: Revert "[plasmoid,libkcups] Add poller for job queue when not empty"
Mike Noe <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 752ddf025121e5efac4c26d39cad7876bf42043c by Mike Noe.
Committed on 03/08/2026 at 14:31.
Pushed by noee into branch 'Plasma/6.6'.
Revert "[plasmoid,libkcups] Add poller for job queue when not empty"
This reverts commit 246addd0444071a23632af3a375e641e54bd2e3e.
M +1 -2 src/libkcups/JobModel.h
M +0 -11 src/plasmoid/main.qml
https://invent.kde.org/plasma/print-manager/-/commit/752ddf025121e5efac4c26d39cad7876bf42043c
diff --git a/src/libkcups/JobModel.h b/src/libkcups/JobModel.h
index e758a788..f338a248 100644
--- a/src/libkcups/JobModel.h
+++ b/src/libkcups/JobModel.h
@@ -81,8 +81,6 @@ public:
Q_INVOKABLE void cancel(const QString &printerName, int jobId);
Q_INVOKABLE void move(const QString &printerName, int jobId, const QString &toPrinterName);
- Q_INVOKABLE void getJobs();
-
QString processingJob() const;
Qt::ItemFlags flags(const QModelIndex &index) const override;
@@ -96,6 +94,7 @@ public:
KCupsRequest *modifyJob(int row, JobAction action, const QString &newDestName = QString(), const QModelIndex &parent = QModelIndex());
private Q_SLOTS:
+ void getJobs();
void getJobFinished(KCupsRequest *request);
void jobCompleted(const QString &text,
diff --git a/src/plasmoid/main.qml b/src/plasmoid/main.qml
index b9c2fcb7..887b065e 100644
--- a/src/plasmoid/main.qml
+++ b/src/plasmoid/main.qml
@@ -46,17 +46,6 @@ PlasmoidItem {
}
}
- // HACK: CUPS fails to signal job queue changes at random times
- // Start a timer to reload the queue if it's not empty
- // When/if it goes empty, stop the timer
- Timer {
- interval: 10000
- repeat: true
- running: activeJobsFilterModel.activeCount > 0
-
- onTriggered: jobsModel.getJobs()
- }
-
toolTipMainText: i18n("Printers")
toolTipSubText: {
if (serverUnavailable && printersModelError) {