mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed crash in box for giveaway create when winners number is constant.
This commit is contained in:
parent
1e8e660133
commit
d78348fd16
1 changed files with 3 additions and 0 deletions
|
@ -850,6 +850,9 @@ void CreateGiveawayBox(
|
|||
? creditsOptionWinners(credits)
|
||||
: availablePresets;
|
||||
const auto count = values.size();
|
||||
if (count <= 1) {
|
||||
return;
|
||||
}
|
||||
const auto sliderWidth = sliderState->slider->width()
|
||||
- st::settingsScale.seekSize.width();
|
||||
for (auto i = 0; i < count; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue