2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

some thread work fixes, no contacts msgs added, username info msgs added

This commit is contained in:
John Preston
2014-11-25 15:15:29 +03:00
parent 9e1d5da5a1
commit 8b743ae751
27 changed files with 355 additions and 145 deletions

View File

@@ -434,6 +434,7 @@ void Window::clearWidgets() {
}
void Window::setupIntro(bool anim) {
cSetContactsReceived(false);
if (intro && (intro->animating() || intro->isVisible()) && !main) return;
QPixmap bg = myGrab(this, QRect(0, st::titleHeight, width(), height() - st::titleHeight));
@@ -636,6 +637,13 @@ void Window::hideLayer() {
}
}
bool Window::hideInnerLayer() {
if (layerBG) {
return layerBG->onInnerClose();
}
return true;
}
bool Window::layerShown() {
return !!layerBG || !!_topWidget;
}
@@ -810,6 +818,12 @@ void Window::updateTrayMenu(bool force) {
#endif
}
void Window::onShowAddContact() {
if (isHidden()) showFromTray();
if (main) main->showAddContact();
}
void Window::onShowNewGroup() {
if (isHidden()) showFromTray();