mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 17:26:58 +00:00
Fixed crash in box for giveaway create when winners number is constant.
This commit is contained in:
parent
1e8e660133
commit
d78348fd16
@ -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…
Reference in New Issue
Block a user