MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / selectSkip

Method selectSkip

Telegram/SourceFiles/boxes/language_box.cpp:737–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735}
736
737void Rows::selectSkip(int dir) {
738 const auto limit = count();
739 auto now = selected();
740 if (now < 0) {
741 now = chosenIndex();
742 }
743 if (now >= 0) {
744 const auto changed = now + dir;
745 if (changed < 0) {
746 setSelected(0, Announce::Always);
747 } else if (changed >= limit) {
748 setSelected(limit - 1, Announce::Always);
749 } else {
750 setSelected(changed, Announce::Always);
751 }
752 } else if (dir > 0) {
753 setSelected(0, Announce::Always);
754 }
755}
756
757rpl::producer<Language> Rows::activations() const {
758 return _activations.events();

Callers 7

peerListSelectSkipMethod · 0.45
MakeCustomListFunction · 0.45
MakeExportOptionFunction · 0.45
ForwardListNavigationFunction · 0.45
keyPressEventMethod · 0.45
AuthorRowSelectorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected