Fixed splits staying paused after unfocusing Chatterino in certain configurations (#5504)

This commit is contained in:
Mm2PL
2024-07-13 11:21:27 +02:00
committed by GitHub
parent e2c3823a14
commit 49de421bd8
4 changed files with 18 additions and 0 deletions
+7
View File
@@ -43,6 +43,7 @@
#include <QDesktopServices>
#include <QHeaderView>
#include <QMenuBar>
#include <QObject>
#include <QPalette>
#include <QStandardItemModel>
#include <QVBoxLayout>
@@ -112,6 +113,12 @@ bool Window::event(QEvent *event)
}
case QEvent::WindowDeactivate: {
for (const auto &split :
this->notebook_->getSelectedPage()->getSplits())
{
split->unpause();
}
auto *page = this->notebook_->getSelectedPage();
if (page != nullptr)