mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 00:52:12 +00:00
TextEditor: Convert to east-const style
This commit is contained in:
parent
73ae5200a9
commit
a3c8005546
2 changed files with 3 additions and 3 deletions
|
@ -245,7 +245,7 @@ MainWidget::MainWidget()
|
|||
m_editor->on_cursor_change = [this] { update_statusbar(); };
|
||||
m_editor->on_selection_change = [this] { update_statusbar(); };
|
||||
|
||||
m_new_action = GUI::Action::create("&New", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [this](const GUI::Action&) {
|
||||
m_new_action = GUI::Action::create("&New", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [this](GUI::Action const&) {
|
||||
if (editor().document().is_modified()) {
|
||||
auto save_document_first_result = GUI::MessageBox::show(window(), "Save changes to current document first?", "Warning", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel);
|
||||
if (save_document_first_result == GUI::Dialog::ExecResult::ExecYes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue