refactor: fix clang-tidy auto*, const&, and curly braces (#5083)

This commit is contained in:
pajlada
2024-01-14 17:54:52 +01:00
committed by GitHub
parent 292f9b9734
commit 5b6675abb4
78 changed files with 647 additions and 228 deletions
+6
View File
@@ -13,15 +13,21 @@ void GIFTimer::initialize()
getSettings()->animateEmotes.connect([this](bool enabled, auto) {
if (enabled)
{
this->timer.start();
}
else
{
this->timer.stop();
}
});
QObject::connect(&this->timer, &QTimer::timeout, [this] {
if (getSettings()->animationsWhenFocused &&
qApp->activeWindow() == nullptr)
{
return;
}
this->position_ += GIF_FRAME_LENGTH;
this->signal.invoke();