refactor: fix clang-tidy auto*, const&, and curly braces (#5083)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user