mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 19:05:07 +00:00
Spreadsheet: Update the view when using the cell editor
This commit is contained in:
parent
6d1e47e7dd
commit
7878596532
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue