2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Added initial context menu to TabbedPanel.

Added ability to schedule and send silently stickers and GIFs.
This commit is contained in:
23rd
2020-07-25 18:07:14 +03:00
committed by John Preston
parent a95a324401
commit 7db9843543
8 changed files with 130 additions and 5 deletions

View File

@@ -364,6 +364,10 @@ void TabbedPanel::hideAnimated() {
} else {
startOpacityAnimation(true);
}
// There is no reason to worry about the message scheduling box
// while it moves the user to the separate scheduled section.
_shouldFinishHide = _selector->hasMenu();
}
void TabbedPanel::toggleAnimated() {
@@ -380,6 +384,7 @@ void TabbedPanel::hideFinished() {
_showAnimation.reset();
_cache = QPixmap();
_hiding = false;
_shouldFinishHide = false;
_selector->hideFinished();
}
@@ -390,6 +395,9 @@ void TabbedPanel::showAnimated() {
}
void TabbedPanel::showStarted() {
if (_shouldFinishHide) {
return;
}
if (isHidden()) {
_selector->showStarted();
moveByBottom();