mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-05 18:05:51 +00:00
fix error in extscript and extupgrade with invalid updates interval if X-AW-Interval=1
This commit is contained in:
@ -149,9 +149,11 @@ QVariantHash ExtUpgrade::run()
|
||||
QString cmd = QString("sh -c \"%1\"").arg(m_executable);
|
||||
qCInfo(LOG_LIB) << "Run cmd" << cmd;
|
||||
process->start(cmd);
|
||||
} else if (times >= interval()) {
|
||||
times = 0;
|
||||
}
|
||||
|
||||
// update value
|
||||
if (times >= interval())
|
||||
times = 0;
|
||||
times++;
|
||||
|
||||
return value;
|
||||
|
Reference in New Issue
Block a user