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

Boxes redesigned. Common groups moved to Shared Media.

Also transparent images sending fixed.
This commit is contained in:
John Preston
2016-12-13 20:07:56 +03:00
parent 85b434bee4
commit 2436ad74bd
231 changed files with 4233 additions and 4235 deletions

View File

@@ -106,19 +106,19 @@ void TopBarWidget::showMenu() {
if (auto peer = main->peer()) {
if (!_menu) {
_menu.create(App::main());
_menu->setHiddenCallback([that = weak(), menu = _menu.ptr()] {
_menu->setHiddenCallback([that = weak(), menu = _menu.data()] {
menu->deleteLater();
if (that && that->_menu == menu) {
that->_menu = nullptr;
that->_menuToggle->setForceRippled(false);
}
});
_menu->setShowStartCallback(base::lambda_guarded(this, [this, menu = _menu.ptr()] {
_menu->setShowStartCallback(base::lambda_guarded(this, [this, menu = _menu.data()] {
if (_menu == menu) {
_menuToggle->setForceRippled(true);
}
}));
_menu->setHideStartCallback(base::lambda_guarded(this, [this, menu = _menu.ptr()] {
_menu->setHideStartCallback(base::lambda_guarded(this, [this, menu = _menu.data()] {
if (_menu == menu) {
_menuToggle->setForceRippled(false);
}
@@ -312,7 +312,7 @@ void TopBarWidget::updateMembersShowArea() {
}
return;
} else if (!_membersShowArea) {
_membersShowArea = new TWidget(this);
_membersShowArea.create(this);
_membersShowArea->show();
_membersShowArea->installEventFilter(this);
}