fix: correctly scale SelectChannelDialog (#6081)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user