voelin-gpui: the server shown after a removal has its remembered folds
restore_tree (the folds ui.tree remembers for a server, put into its session once) ran only in select_server, so the server that came on screen when the one shown was removed, or when a save or a connect put another on screen, had none of its folds: its tree showed everything open, and the next fold wrote the one just made over what was stored. transition_with, which every transition runs through, now restores the folds of whichever server it leaves on screen before anything draws it, and select_server no longer does it by itself. Two tests: removing the server on screen shows the next with its stored fold, and a fold made then is added to it where it used to replace it ([3, 7], not [3]); a save of another server shows it the same way. Both failed on the code before (no session for the server shown, so no folds). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
122b2d29fa
commit
cc143f312d
2 files changed
+75
-3
No files matched your search
+1
-1
@@ -1237,7 +1237,7 @@ front end](#shared-with-the-slint-front-end)):
|
||||
| `edit_bookmark` | `EditServer { id }` | opens the form with `servers::form` |
|
||||
| `save_bookmark` | `SaveServer` | `logic::bookmark_from_form`, the store, the secrets; shows the server |
|
||||
| `save_and_connect` | `SaveAndConnect` | saves, then connects into the form's channel or the default one (`servers::connect_to`) |
|
||||
| `delete_bookmark` | `DeleteServer { id }` | `CloseSession`, the secrets and the store, `logic::forget_server` |
|
||||
| `delete_bookmark` | `DeleteServer { id }` | `CloseSession`, the secrets and the store, `logic::forget_server`; the server that comes on screen has its remembered folds put back (as has any server a transition puts on screen: a save, a connect) |
|
||||
| `invite` | `Invite` | `logic::invite_link`, the link on the clipboard, the status line's note |
|
||||
|
||||
The others of that file: `join_channel`, `join_with_password`, `toggle_collapse`,
|
||||
|
||||
Reference in new issue
Block a user