Spreadsheet: Update the view when using the cell editor

This commit is contained in:
AnotherTest 2020-11-07 23:18:11 +03:30 committed by Andreas Kling
parent 6d1e47e7dd
commit 7878596532
Notes: sideshowbarker 2024-07-19 01:29:56 +09:00

View file

@ -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);