mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()
|
const auto historyDisplayedEmpty = _history->isDisplayedEmpty()
|
||||||
&& (!_migrated || _migrated->isDisplayedEmpty());
|
&& (!_migrated || _migrated->isDisplayedEmpty());
|
||||||
bool noHistoryDisplayed = _firstLoading || historyDisplayedEmpty;
|
bool noHistoryDisplayed = historyDisplayedEmpty;
|
||||||
if (!_firstLoading && _botAbout && !_botAbout->info->text.isEmpty() && _botAbout->height > 0) {
|
if (_botAbout && !_botAbout->info->text.isEmpty() && _botAbout->height > 0) {
|
||||||
const auto st = context.st;
|
const auto st = context.st;
|
||||||
const auto stm = &st->messageStyle(false, false);
|
const auto stm = &st->messageStyle(false, false);
|
||||||
if (clip.y() < _botAbout->rect.y() + _botAbout->rect.height() && clip.y() + clip.height() > _botAbout->rect.y()) {
|
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;
|
return _wasSelectedText;
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryInner::setFirstLoading(bool loading) {
|
|
||||||
_firstLoading = loading;
|
|
||||||
update();
|
|
||||||
}
|
|
||||||
|
|
||||||
void HistoryInner::visibleAreaUpdated(int top, int bottom) {
|
void HistoryInner::visibleAreaUpdated(int top, int bottom) {
|
||||||
auto scrolledUp = (top < _visibleAreaTop);
|
auto scrolledUp = (top < _visibleAreaTop);
|
||||||
_visibleAreaTop = top;
|
_visibleAreaTop = top;
|
||||||
|
|
|
@ -121,7 +121,6 @@ public:
|
||||||
void updateBotInfo(bool recount = true);
|
void updateBotInfo(bool recount = true);
|
||||||
|
|
||||||
bool wasSelectedText() const;
|
bool wasSelectedText() const;
|
||||||
void setFirstLoading(bool loading);
|
|
||||||
|
|
||||||
// updates history->scrollTopItem/scrollTopOffset
|
// updates history->scrollTopItem/scrollTopOffset
|
||||||
void visibleAreaUpdated(int top, int bottom);
|
void visibleAreaUpdated(int top, int bottom);
|
||||||
|
@ -378,8 +377,6 @@ private:
|
||||||
mutable int _curBlock = 0;
|
mutable int _curBlock = 0;
|
||||||
mutable int _curItem = 0;
|
mutable int _curItem = 0;
|
||||||
|
|
||||||
bool _firstLoading = false;
|
|
||||||
|
|
||||||
style::cursor _cursor = style::cur_default;
|
style::cursor _cursor = style::cur_default;
|
||||||
SelectedItems _selected;
|
SelectedItems _selected;
|
||||||
std::optional<Ui::ReportReason> _chooseForReportReason;
|
std::optional<Ui::ReportReason> _chooseForReportReason;
|
||||||
|
|
Loading…
Add table
Reference in a new issue