mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03: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
Notes:
sideshowbarker
2024-07-19 17:25:16 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/5c89305fc6f Pull-request: https://github.com/SerenityOS/serenity/pull/8729
@ -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…
Reference in New Issue
Block a user