mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-09 11:55:52 +00:00
fix error in extscript and extupgrade with invalid updates interval if X-AW-Interval=1
This commit is contained in:
@ -271,9 +271,11 @@ QVariantHash ExtScript::run()
|
||||
cmdList.append(m_executable);
|
||||
qCInfo(LOG_LIB) << "Run cmd" << cmdList.join(QChar(' '));
|
||||
process->start(cmdList.join(QChar(' ')));
|
||||
} else if (times >= interval()) {
|
||||
times = 0;
|
||||
}
|
||||
|
||||
// update value
|
||||
if (times >= interval())
|
||||
times = 0;
|
||||
times++;
|
||||
|
||||
return value;
|
||||
|
Reference in New Issue
Block a user