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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user