fix: copy filters to overlay window (#5643)

This commit is contained in:
nerix
2024-10-12 12:08:30 +02:00
committed by GitHub
parent bdc12ffb3f
commit bc1850ce2d
4 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -85,7 +85,8 @@ namespace chatterino {
using namespace std::chrono_literals;
OverlayWindow::OverlayWindow(IndirectChannel channel)
OverlayWindow::OverlayWindow(IndirectChannel channel,
const QList<QUuid> &filterIDs)
: QWidget(nullptr,
Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint)
#ifdef Q_OS_WIN
@@ -116,6 +117,7 @@ OverlayWindow::OverlayWindow(IndirectChannel channel)
});
this->channelView_.installEventFilter(this);
this->channelView_.setFilters(filterIDs);
this->channelView_.setChannel(this->channel_.get());
this->channelView_.setIsOverlay(true); // use overlay colors
this->channelView_.setAttribute(Qt::WA_TranslucentBackground);