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:
parent
50de653cc9
commit
6e16a5cdfa
4 changed files with 10 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue