mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
[poll-view] Added hiding of add-option overlay on message field focus.
This commit is contained in:
@@ -4331,6 +4331,12 @@ void HistoryInner::elementSubmitAddPollOption(FullMsgId context) {
|
||||
}
|
||||
}
|
||||
|
||||
void HistoryInner::hideElementOverlay() {
|
||||
if (_overlayHost) {
|
||||
_overlayHost->hide();
|
||||
}
|
||||
}
|
||||
|
||||
void HistoryInner::elementOpenPhoto(
|
||||
not_null<PhotoData*> photo,
|
||||
FullMsgId context) {
|
||||
|
||||
@@ -162,6 +162,7 @@ public:
|
||||
FullMsgId context,
|
||||
QRect optionRect);
|
||||
void elementSubmitAddPollOption(FullMsgId context);
|
||||
void hideElementOverlay();
|
||||
void elementOpenPhoto(
|
||||
not_null<PhotoData*> photo,
|
||||
FullMsgId context);
|
||||
|
||||
@@ -6515,6 +6515,7 @@ void HistoryWidget::fieldResized() {
|
||||
void HistoryWidget::fieldFocused() {
|
||||
if (_list) {
|
||||
_list->clearSelected(true);
|
||||
_list->hideElementOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user