mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Removed unused HistoryInner::setFirstLoading.
This commit is contained in:
parent
844fd58a97
commit
de3b52425c
2 changed files with 2 additions and 10 deletions
|
@ -614,8 +614,8 @@ void HistoryInner::paintEvent(QPaintEvent *e) {
|
|||
|
||||
const auto historyDisplayedEmpty = _history->isDisplayedEmpty()
|
||||
&& (!_migrated || _migrated->isDisplayedEmpty());
|
||||
bool noHistoryDisplayed = _firstLoading || historyDisplayedEmpty;
|
||||
if (!_firstLoading && _botAbout && !_botAbout->info->text.isEmpty() && _botAbout->height > 0) {
|
||||
bool noHistoryDisplayed = historyDisplayedEmpty;
|
||||
if (_botAbout && !_botAbout->info->text.isEmpty() && _botAbout->height > 0) {
|
||||
const auto st = context.st;
|
||||
const auto stm = &st->messageStyle(false, false);
|
||||
if (clip.y() < _botAbout->rect.y() + _botAbout->rect.height() && clip.y() + clip.height() > _botAbout->rect.y()) {
|
||||
|
@ -2328,11 +2328,6 @@ bool HistoryInner::wasSelectedText() const {
|
|||
return _wasSelectedText;
|
||||
}
|
||||
|
||||
void HistoryInner::setFirstLoading(bool loading) {
|
||||
_firstLoading = loading;
|
||||
update();
|
||||
}
|
||||
|
||||
void HistoryInner::visibleAreaUpdated(int top, int bottom) {
|
||||
auto scrolledUp = (top < _visibleAreaTop);
|
||||
_visibleAreaTop = top;
|
||||
|
|
|
@ -121,7 +121,6 @@ public:
|
|||
void updateBotInfo(bool recount = true);
|
||||
|
||||
bool wasSelectedText() const;
|
||||
void setFirstLoading(bool loading);
|
||||
|
||||
// updates history->scrollTopItem/scrollTopOffset
|
||||
void visibleAreaUpdated(int top, int bottom);
|
||||
|
@ -378,8 +377,6 @@ private:
|
|||
mutable int _curBlock = 0;
|
||||
mutable int _curItem = 0;
|
||||
|
||||
bool _firstLoading = false;
|
||||
|
||||
style::cursor _cursor = style::cur_default;
|
||||
SelectedItems _selected;
|
||||
std::optional<Ui::ReportReason> _chooseForReportReason;
|
||||
|
|
Loading…
Add table
Reference in a new issue