Skip to content

Commit

Permalink
Update src/gui/FileBrowser.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Tres Finocchiaro <[email protected]>
  • Loading branch information
AW1534 and tresf authored Feb 18, 2025
1 parent 2131e71 commit 693b8d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/FileBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,9 @@ void FileBrowserTreeWidget::contextMenuEvent(QContextMenuEvent* e)
}
case TypeDirectoryItem: {
auto dir = dynamic_cast<Directory*>(item);
QString dirname = dir->fullName();
contextMenu.addAction(QIcon(embed::getIconPixmap("folder")), tr("Open in %1").arg(fileManager), [=, this] {
auto _dirname = dirname;
FileRevealer::openDir(QFileInfo(_dirname));
FileRevealer::openDir(dir->fullName());
});
});
break;
}
Expand Down

0 comments on commit 693b8d1

Please sign in to comment.