mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix build on Windows.
This commit is contained in:
parent
9ba1af2eb9
commit
8eedc7b2ba
1 changed files with 3 additions and 2 deletions
|
@ -905,8 +905,8 @@ void TabbedSelector::fillTabsSliderSections() {
|
|||
? !masks()->mySetsEmpty()
|
||||
: true;
|
||||
}) | ranges::views::transform([&](const Tab &tab) {
|
||||
return [type = tab.type()] {
|
||||
switch (type) {
|
||||
return [&] {
|
||||
switch (tab.type()) {
|
||||
case SelectorTab::Emoji:
|
||||
return tr::lng_switch_emoji;
|
||||
case SelectorTab::Stickers:
|
||||
|
@ -916,6 +916,7 @@ void TabbedSelector::fillTabsSliderSections() {
|
|||
case SelectorTab::Masks:
|
||||
return tr::lng_switch_masks;
|
||||
}
|
||||
Unexpected("SelectorTab value in fillTabsSliderSections.");
|
||||
}()(tr::now).toUpper();
|
||||
}) | ranges::to_vector;
|
||||
_tabsSlider->setSections(sections);
|
||||
|
|
Loading…
Add table
Reference in a new issue