mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
plasma-runners: fix sleep time extraction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9da683c566
commit
2ba83b4901
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void SleeperRunner::match(Plasma::RunnerContext &context)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (term.startsWith(QLatin1String("sleep"))) {
|
if (term.startsWith(QLatin1String("sleep"))) {
|
||||||
int sleeptime = term.mid(4).trimmed().toInt();
|
int sleeptime = term.mid(5).trimmed().toInt();
|
||||||
if (sleeptime <= 0) {
|
if (sleeptime <= 0) {
|
||||||
sleeptime = s_sleeptime;
|
sleeptime = s_sleeptime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue