mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
Spreadsheet: Update the view when using the cell editor
This commit is contained in:
parent
6d1e47e7dd
commit
7878596532
Notes:
sideshowbarker
2024-07-19 01:29:56 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/7878596532f Pull-request: https://github.com/SerenityOS/serenity/pull/3984 Issue: https://github.com/SerenityOS/serenity/issues/3906 Reviewed-by: https://github.com/awesomekling
@ -114,6 +114,7 @@ void SpreadsheetWidget::setup_tabs(NonnullRefPtrVector<Sheet> new_sheets)
|
||||
m_cell_value_editor->on_change = [&] {
|
||||
cell.set_data(m_cell_value_editor->text());
|
||||
m_selected_view->sheet().update();
|
||||
update();
|
||||
};
|
||||
m_cell_value_editor->set_enabled(true);
|
||||
return;
|
||||
@ -139,6 +140,7 @@ void SpreadsheetWidget::setup_tabs(NonnullRefPtrVector<Sheet> new_sheets)
|
||||
for (auto* cell : cells)
|
||||
cell->set_data(m_cell_value_editor->text());
|
||||
m_selected_view->sheet().update();
|
||||
update();
|
||||
}
|
||||
};
|
||||
m_cell_value_editor->set_enabled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user