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);
+1 -1
View File
@@ -21,7 +21,7 @@ class OverlayWindow : public QWidget
{
Q_OBJECT
public:
OverlayWindow(IndirectChannel channel);
OverlayWindow(IndirectChannel channel, const QList<QUuid> &filterIDs);
~OverlayWindow() override;
OverlayWindow(const OverlayWindow &) = delete;
OverlayWindow(OverlayWindow &&) = delete;
+2 -1
View File
@@ -1155,7 +1155,8 @@ void Split::showOverlayWindow()
{
if (!this->overlayWindow_)
{
this->overlayWindow_ = new OverlayWindow(this->getIndirectChannel());
this->overlayWindow_ =
new OverlayWindow(this->getIndirectChannel(), this->getFilters());
}
this->overlayWindow_->show();
}