mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
parent
f27f2c20e0
commit
10ee1ab7a2
15 changed files with 24 additions and 48 deletions
|
@ -464,8 +464,7 @@ void Application::processMessage(const QString &message)
|
|||
#ifndef DISABLE_GUI
|
||||
if (message.isEmpty())
|
||||
{
|
||||
// TODO: use [[likely]] in C++20
|
||||
if (Q_LIKELY(BitTorrent::Session::instance()->isRestored()))
|
||||
if (BitTorrent::Session::instance()->isRestored()) [[likely]]
|
||||
{
|
||||
m_window->activate(); // show UI
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue