mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix peer list row selecting for forums.
The blobs in group calls are still round for them :(
This commit is contained in:
parent
3b7cdb5748
commit
9a1d9deea5
1 changed files with 7 additions and 1 deletions
|
@ -847,10 +847,16 @@ void PeerListRow::lazyInitialize(const style::PeerListItem &st) {
|
|||
void PeerListRow::createCheckbox(
|
||||
const style::RoundImageCheckbox &st,
|
||||
Fn<void()> updateCallback) {
|
||||
const auto generateRadius = [=] {
|
||||
return (!special() && peer()->isForum())
|
||||
? ImageRoundRadius::Large
|
||||
: ImageRoundRadius::Ellipse;
|
||||
};
|
||||
_checkbox = std::make_unique<Ui::RoundImageCheckbox>(
|
||||
st,
|
||||
std::move(updateCallback),
|
||||
generatePaintUserpicCallback());
|
||||
generatePaintUserpicCallback(),
|
||||
generateRadius);
|
||||
}
|
||||
|
||||
void PeerListRow::setCheckedInternal(bool checked, anim::type animated) {
|
||||
|
|
Loading…
Add table
Reference in a new issue