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

Show "choose from user" box when typing "from:".

This commit is contained in:
John Preston
2017-08-06 19:32:05 +02:00
parent ce51abd9d0
commit 0a6535ea94
3 changed files with 26 additions and 2 deletions

View File

@@ -732,9 +732,10 @@ void MainWindow::noLayerStack(LayerStackWidget *was) {
void MainWindow::layerFinishedHide(LayerStackWidget *was) {
if (was == _layerBg) {
auto resetFocus = (was == App::wnd()->focusWidget());
destroyLayerDelayed();
InvokeQueued(this, [this] {
setInnerFocus();
InvokeQueued(this, [this, resetFocus] {
if (resetFocus) setInnerFocus();
checkHistoryActivation();
});
}