mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed crash in box for giveaway create when winners number is constant.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user