block keyboard directory navigation in files-only mode

This commit is contained in:
thrust26 2024-01-05 22:39:36 +01:00
parent 2e2c870e38
commit 2252be4a86
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ void FileListWidget::selectDirectory(const FSNode& node)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void FileListWidget::selectParent()
{
if(_node.hasParent())
if(_node.hasParent() && _fsmode != FSNode::ListMode::FilesOnly)
{
string name = _node.getName();
const FSNode parent(_node.getParent());