mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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)
|
? creditsOptionWinners(credits)
|
||||||
: availablePresets;
|
: availablePresets;
|
||||||
const auto count = values.size();
|
const auto count = values.size();
|
||||||
|
if (count <= 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto sliderWidth = sliderState->slider->width()
|
const auto sliderWidth = sliderState->slider->width()
|
||||||
- st::settingsScale.seekSize.width();
|
- st::settingsScale.seekSize.width();
|
||||||
for (auto i = 0; i < count; i++) {
|
for (auto i = 0; i < count; i++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue