mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibGUI: JsonArrayModel update without invalidating indices
Add function to update a JsonArrayModel without invalidating it. Now, for example in the SystemMonitor in the Network tab, a selected line will not be deselected whenever the data is updated.
This commit is contained in:
parent
fd24782d85
commit
b6c3fad078
3 changed files with 22 additions and 3 deletions
|
@ -114,7 +114,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
|
|||
|
||||
void NetworkStatisticsWidget::update_models()
|
||||
{
|
||||
m_adapter_model->invalidate();
|
||||
m_tcp_socket_model->invalidate();
|
||||
m_udp_socket_model->invalidate();
|
||||
m_adapter_model->update();
|
||||
m_tcp_socket_model->update();
|
||||
m_udp_socket_model->update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue