mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-23 15:06:09 +00:00
Update Telegram button added to DialogsWidget/Intro. Three dot menu.
This commit is contained in:
@@ -44,7 +44,7 @@ DropdownMenu::DropdownMenu(QWidget *parent, const style::DropdownMenu &st) : Inn
|
||||
//}
|
||||
|
||||
void DropdownMenu::init() {
|
||||
connect(this, SIGNAL(beforeHidden()), this, SLOT(onHidden()));
|
||||
InnerDropdown::setHiddenCallback([this] { hideFinish(); });
|
||||
|
||||
setOwnedWidget(_menu);
|
||||
|
||||
@@ -216,6 +216,9 @@ void DropdownMenu::childHiding(DropdownMenu *child) {
|
||||
|
||||
void DropdownMenu::hideFinish() {
|
||||
_menu->clearSelection();
|
||||
if (_hiddenCallback) {
|
||||
_hiddenCallback();
|
||||
}
|
||||
}
|
||||
|
||||
// Not ready with submenus yet.
|
||||
|
||||
Reference in New Issue
Block a user