mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Use crl::time/now instead of TimeMs/getms.
This commit is contained in:
@@ -668,13 +668,13 @@ void MainWindow::toggleTray(QSystemTrayIcon::ActivationReason reason) {
|
||||
} else {
|
||||
showFromTray(reason);
|
||||
}
|
||||
_lastTrayClickTime = getms();
|
||||
_lastTrayClickTime = crl::now();
|
||||
}
|
||||
}
|
||||
|
||||
bool MainWindow::skipTrayClick() const {
|
||||
return (_lastTrayClickTime > 0)
|
||||
&& (getms() - _lastTrayClickTime
|
||||
&& (crl::now() - _lastTrayClickTime
|
||||
< QApplication::doubleClickInterval());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user