2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed closing folder by Escape when opened dialog in one column mode.

Dialog should be opened by shortcut.
This commit is contained in:
23rd
2019-05-08 16:19:27 +03:00
committed by John Preston
parent 6de30b1137
commit 89a0cd3e81

View File

@@ -390,7 +390,9 @@ MainWidget::MainWidget(
? _history->history()->folder()
: nullptr;
const auto openedFolder = controller->openedFolder().current();
if (!openedFolder || historyFromFolder == openedFolder) {
if (!openedFolder
|| historyFromFolder == openedFolder
|| Adaptive::OneColumn()) {
controller->showBackFromStack();
_dialogs->setInnerFocus();
} else {