mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fixed unwanted flickering of record button when recorded data is empty.
This commit is contained in:
@@ -1280,6 +1280,9 @@ void VoiceRecordBar::recordUpdated(quint16 level, int samples) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VoiceRecordBar::stop(bool send) {
|
void VoiceRecordBar::stop(bool send) {
|
||||||
|
if (isHidden() && !send) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto disappearanceCallback = [=] {
|
auto disappearanceCallback = [=] {
|
||||||
hide();
|
hide();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user