mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03:00
LibGUI: Tweak "Overwrite file?" dialog text to use one sentence per sentence
This commit is contained in:
parent
ccfb3bef75
commit
09b881797f
Notes:
sideshowbarker
2024-07-18 22:50:27 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/09b881797f8 Pull-request: https://github.com/SerenityOS/serenity/pull/5125
@ -301,7 +301,7 @@ void FilePicker::on_file_return()
|
|||||||
LexicalPath path(String::formatted("{}/{}", m_model->root_path(), m_filename_textbox->text()));
|
LexicalPath path(String::formatted("{}/{}", m_model->root_path(), m_filename_textbox->text()));
|
||||||
|
|
||||||
if (FilePicker::file_exists(path.string()) && m_mode == Mode::Save) {
|
if (FilePicker::file_exists(path.string()) && m_mode == Mode::Save) {
|
||||||
auto result = MessageBox::show(this, "File already exists, overwrite?", "Existing File", MessageBox::Type::Warning, MessageBox::InputType::OKCancel);
|
auto result = MessageBox::show(this, "File already exists. Overwrite?", "Existing File", MessageBox::Type::Warning, MessageBox::InputType::OKCancel);
|
||||||
if (result == MessageBox::ExecCancel)
|
if (result == MessageBox::ExecCancel)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user