mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 17:51:41 -05:00
Fixed closing folder by Escape when opened dialog in one column mode.
Dialog should be opened by shortcut.
This commit is contained in:
parent
6de30b1137
commit
89a0cd3e81
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue