fix: correctly scale SelectChannelDialog (#6081)

This commit is contained in:
pajlada
2025-03-16 10:44:25 +01:00
committed by GitHub
parent 95eee28002
commit 57dc0144b2
6 changed files with 286 additions and 256 deletions
+3 -5
View File
@@ -440,16 +440,14 @@ pajlada::Signals::NoArgSignal &IndirectChannel::getChannelChanged()
return this->data_->changed;
}
Channel::Type IndirectChannel::getType()
Channel::Type IndirectChannel::getType() const
{
if (this->data_->type == Channel::Type::Direct)
{
return this->get()->getType();
}
else
{
return this->data_->type;
}
return this->data_->type;
}
} // namespace chatterino
+1 -1
View File
@@ -164,7 +164,7 @@ public:
ChannelPtr get() const;
void reset(ChannelPtr channel);
pajlada::Signals::NoArgSignal &getChannelChanged();
Channel::Type getType();
Channel::Type getType() const;
private:
std::shared_ptr<Data> data_;