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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user