Make use of chrono literals from std library

This commit is contained in:
Chocobo1 2022-06-22 16:36:10 +08:00
parent 2a5dbe840c
commit 6de72ecc77
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
17 changed files with 57 additions and 32 deletions

View file

@ -1762,7 +1762,7 @@ void MainWindow::createTrayIcon(const int retries)
if (retries > 0)
{
LogMsg(tr("System tray icon is not available, retrying..."), Log::WARNING);
QTimer::singleShot(std::chrono::seconds(2), this, [this, retries]()
QTimer::singleShot(2s, this, [this, retries]()
{
if (Preferences::instance()->systemTrayEnabled())
createTrayIcon(retries - 1);