Commit 1a0f653
committed
fix: project profile name shows stale value after save
After saving in the editor, clear_model_info() empties m_last_payload.
If index.html loads and sends request_3mf_info before the background
on_reload() thread completes — or if on_reload()'s RunScript call is
dropped during webview navigation — the page receives no data and
continues to display the pre-save profile name.
Fall back to update_model_data() when request_3mf_info arrives with an
empty m_last_payload. This triggers a fresh on_reload() which dispatches
the up-to-date model data directly to the now-loaded page.1 parent 7b7b27a commit 1a0f653
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
392 | 398 | | |
393 | 399 | | |
394 | 400 | | |
| |||
0 commit comments