fix: animate emotes when overlay is open (#5659)

This commit is contained in:
nerix
2024-10-19 11:56:46 +02:00
committed by GitHub
parent 85d34c8ff0
commit d0b9fd0dc3
4 changed files with 17 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ void GIFTimer::initialize()
QObject::connect(&this->timer, &QTimer::timeout, [this] {
if (getSettings()->animationsWhenFocused &&
this->openOverlayWindows_ == 0 &&
QApplication::activeWindow() == nullptr)
{
return;
+12
View File
@@ -18,9 +18,21 @@ public:
return this->position_;
}
void registerOpenOverlayWindow()
{
this->openOverlayWindows_++;
}
void unregisterOpenOverlayWindow()
{
assert(this->openOverlayWindows_ >= 1);
this->openOverlayWindows_--;
}
private:
QTimer timer;
long unsigned position_{};
size_t openOverlayWindows_ = 0;
};
} // namespace chatterino