mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-28 11:30:54 +00:00
Remove layer deletion by timer in MainWindow.
It could be: schedule deletion -> show new box -> delete it by timer. This fixes the error box display when adding users to groups.
This commit is contained in:
parent
bd1547cd5e
commit
3db913f15b
@ -533,13 +533,6 @@ void MainWindow::checkHistoryActivation() {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::layerHidden() {
|
||||
destroyLayerDelayed();
|
||||
hideMediaview();
|
||||
setInnerFocus();
|
||||
checkHistoryActivation();
|
||||
}
|
||||
|
||||
bool MainWindow::contentOverlapped(const QRect &globalRect) {
|
||||
if (_main && _main->contentOverlapped(globalRect)) return true;
|
||||
if (_layerBg && _layerBg->contentOverlapped(globalRect)) return true;
|
||||
@ -739,7 +732,11 @@ void MainWindow::noLayerStack(LayerStackWidget *was) {
|
||||
|
||||
void MainWindow::layerFinishedHide(LayerStackWidget *was) {
|
||||
if (was == _layerBg) {
|
||||
QTimer::singleShot(0, this, SLOT(layerHidden()));
|
||||
destroyLayerDelayed();
|
||||
InvokeQueued(this, [this] {
|
||||
setInnerFocus();
|
||||
checkHistoryActivation();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,6 @@ protected:
|
||||
|
||||
public slots:
|
||||
void showSettings();
|
||||
void layerHidden();
|
||||
void setInnerFocus();
|
||||
void updateConnectingStatus();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user