mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibGUI: Tweak order of common location buttons in FilePicker
Let's put the root directory up top so the buttons are in order of directory specificity.
This commit is contained in:
parent
33d9b592cd
commit
c28a3a385b
Notes:
sideshowbarker
2024-07-18 20:43:17 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c28a3a385bd
1 changed files with 2 additions and 1 deletions
|
@ -237,9 +237,10 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, const StringView& file_
|
|||
};
|
||||
return button;
|
||||
};
|
||||
|
||||
auto& root_button = add_common_location_button("Root", "/");
|
||||
auto& home_button = add_common_location_button("Home", Core::StandardPaths::home_directory());
|
||||
auto& desktop_button = add_common_location_button("Desktop", Core::StandardPaths::desktop_directory());
|
||||
auto& root_button = add_common_location_button("Root", "/");
|
||||
|
||||
m_model->on_complete = [&] {
|
||||
if (m_model->root_path() == Core::StandardPaths::home_directory()) {
|
||||
|
|
Loading…
Reference in a new issue