mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
LibGUI: Don't clear textbox on save mode in FilePicker
This fixes a rather frustrating issue during saving a file, when clicking on a folder (to change the path of saved file) caused the filename to disappear from the text box.
This commit is contained in:
parent
f09e361eef
commit
5c89305fc6
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, const StringView& filen
|
|||
auto should_open_folder = m_mode == Mode::OpenFolder;
|
||||
if (should_open_folder == node.is_directory()) {
|
||||
m_filename_textbox->set_text(node.name);
|
||||
} else {
|
||||
} else if (m_mode != Mode::Save) {
|
||||
m_filename_textbox->clear();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue