1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:57:44 +00:00

Applications: Open folder with pre-selected file where appropriate :^)

This commit is contained in:
speles 2021-03-01 23:27:37 +02:00 committed by Andreas Kling
parent 50de653cc9
commit 6e16a5cdfa
4 changed files with 10 additions and 7 deletions

View file

@ -166,7 +166,7 @@ void DownloadWidget::did_finish(bool success)
m_close_button->set_enabled(true);
m_cancel_button->set_text("Open in Folder");
m_cancel_button->on_click = [this](auto) {
Desktop::Launcher::open(URL::create_with_file_protocol(Core::StandardPaths::downloads_directory()));
Desktop::Launcher::open(URL::create_with_file_protocol(Core::StandardPaths::downloads_directory(), m_url.basename()));
window()->close();
};
m_cancel_button->update();