2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

fixed mediaview in os x, added mac sign shell script, os x media overview supported

This commit is contained in:
John Preston
2014-08-15 15:53:58 +04:00
parent 0b403c88ae
commit a4728238bb
6 changed files with 22 additions and 6 deletions

View File

@@ -629,7 +629,7 @@ void OverviewWidget::clear() {
void OverviewWidget::onScroll() {
MTP::clearLoaderPriorities();
bool nearBottom = _scroll.scrollTop() + _scroll.height() * 5 > _scroll.scrollTopMax(), nearTop = _scroll.scrollTop() < _scroll.height() * 5;
if (nearBottom && type() == OverviewPhotos || nearTop && type() != OverviewPhotos) {
if ((nearBottom && type() == OverviewPhotos) || (nearTop && type() != OverviewPhotos)) {
if (App::main()) {
App::main()->loadMediaBack(peer(), type(), true);
}