Commit 5c10d5cf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use directly QRandomGenerator::global()->bounded(4000)

parent c0eb9678
Pipeline #25410 canceled with stage
...@@ -487,7 +487,7 @@ void Feed::setXmlUrl(const QString &s) ...@@ -487,7 +487,7 @@ void Feed::setXmlUrl(const QString &s)
{ {
d->m_xmlUrl = s; d->m_xmlUrl = s;
if (!Settings::fetchOnStartup()) { if (!Settings::fetchOnStartup()) {
QTimer::singleShot(QRandomGenerator::global()->generate() % 4000, this, &Feed::slotAddFeedIconListener); // TODO: let's give a gui some time to show up before starting the fetch when no fetch on startup is used. replace this with something proper later... QTimer::singleShot(QRandomGenerator::global()->bounded(4000), this, &Feed::slotAddFeedIconListener); // TODO: let's give a gui some time to show up before starting the fetch when no fetch on startup is used. replace this with something proper later...
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment