From 81c8264232be9c7b5c1e1e971d1376598383d151 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Sat, 30 Sep 2023 20:44:22 +0300 Subject: [PATCH] chore: correct typos in zcupsmonitor.cpp Log: --- src/Deamon/dbus/zcupsmonitor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Deamon/dbus/zcupsmonitor.cpp b/src/Deamon/dbus/zcupsmonitor.cpp index 0b17af9..33a3275 100644 --- a/src/Deamon/dbus/zcupsmonitor.cpp +++ b/src/Deamon/dbus/zcupsmonitor.cpp @@ -114,7 +114,7 @@ bool CupsMonitor::insertJobMessage(int id, int state, const QString &message) { QString str; int times = 0; - bool hasRuningJobs = false; + bool hasRunningJobs = false; { QMutexLocker locker(&m_mutex); @@ -140,13 +140,13 @@ bool CupsMonitor::insertJobMessage(int id, int state, const QString &message) int iState = str.left(1).toInt(); if (!isCompletedState(iState)) { - hasRuningJobs = true; + hasRunningJobs = true; break; } } } } - emit signalShowTrayIcon(hasRuningJobs); + emit signalShowTrayIcon(hasRunningJobs); //只有处理中的状态才通过事件触发的次数过滤事件 if (IPP_JSTATE_PROCESSING != state) {