Julian Eisel
e1b4610bf4
UI: Support persistent view state, write tree-view height to files
...
Adds support for saving some view state persistently and uses this to keep the
height of a tree-view, even as the region containing it is hidden, or the file
re-loaded.
Fixes #129058 .
Basically the design is to have state stored in the region, so it can be saved
to files. Views types (tree-view, grid-view, etc) can decide themselves if they
have state to be preserved, and what state that is. If a view wants to preserve
state, it's stored in a list inside the region, identified by the view's idname.
Limitation is that multiple instances of the same view would share these bits of
state, in practice I don't think that's ever an issue.
More state can be added to be preserved as needed. Since different kinds of
views may require different state, I was thinking we could add ID properties to
`uiViewState` even, making it much more dynamic.
Pull Request: https://projects.blender.org/blender/blender/pulls/130292
(cherry picked from commit f0db870822 )
2025-07-24 12:52:12 +01:00
..
2025-07-24 12:52:12 +01:00
2024-02-26 17:40:57 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-11-15 18:46:07 +01:00
2023-05-31 16:19:06 +02:00
2024-04-04 17:36:33 +02:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-12-29 15:08:59 -05:00
2024-03-18 15:04:12 +01:00
2024-01-21 19:13:46 +01:00
2024-02-01 09:21:55 +01:00
2024-02-01 09:21:55 +01:00
2024-02-02 17:01:20 +01:00
2023-09-03 13:37:50 +02:00
2024-02-03 18:13:34 +01:00
2024-02-02 10:02:25 +01:00
2024-02-02 10:02:25 +01:00
2024-01-21 19:34:20 +01:00
2024-01-21 19:49:58 +01:00
2024-01-21 19:26:31 +01:00
2024-03-28 14:40:03 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-05-31 16:19:06 +02:00
2024-03-18 15:04:12 +01:00
2024-01-30 05:08:23 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-12-20 20:59:11 -05:00
2024-01-04 15:07:48 -05:00
2024-01-04 15:07:48 -05:00
2024-01-22 13:47:13 +01:00
2024-03-18 15:04:12 +01:00
2024-02-02 12:04:37 +01:00
2023-11-16 12:00:26 +01:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2024-02-02 19:55:06 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-11-27 16:14:49 +01:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-02-06 22:28:10 +11:00
2024-03-18 15:04:12 +01:00
2023-12-26 23:59:44 -05:00
2024-03-18 15:04:12 +01:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2023-12-14 12:32:11 +11:00
2023-12-04 15:23:24 -05:00
2024-01-15 11:39:50 -05:00
2023-12-14 12:32:11 +11:00
2023-07-31 13:02:30 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-01-06 03:51:45 +01:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2024-02-01 12:43:39 +01:00
2023-08-16 00:20:26 +10:00
2024-01-12 14:30:34 +01:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-09-27 14:47:50 +10:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2024-02-02 10:43:17 +11:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-07-04 17:03:02 +02:00
2023-08-16 00:20:26 +10:00
2023-12-13 11:08:03 +01:00
2024-01-19 20:29:38 +01:00
2024-02-01 20:32:24 +01:00
2024-03-18 15:04:12 +01:00
2023-07-31 13:02:30 +10:00
2023-08-16 00:20:26 +10:00
2024-01-31 17:08:09 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-12-20 17:57:24 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-02-22 19:25:59 +01:00
2023-09-25 18:00:28 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2024-01-31 13:00:28 -05:00
2024-01-22 13:47:13 +01:00
2024-01-04 15:07:48 -05:00
2024-03-18 15:04:12 +01:00
2024-01-23 21:10:33 +01:00
2024-03-23 11:29:46 +00:00
2024-01-24 11:46:39 -05:00
2024-01-24 18:18:14 +01:00
2024-03-18 15:04:12 +01:00
2023-11-27 16:10:43 +01:00
2023-11-30 10:42:16 +11:00
2024-03-18 15:04:12 +01:00
2024-03-15 15:25:13 -04:00
2024-01-19 12:08:48 -05:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-11-27 09:30:52 +11:00
2024-03-18 15:04:12 +01:00
2023-12-20 20:58:38 -05:00
2024-03-18 15:04:12 +01:00
2024-02-01 09:21:55 +01:00
2023-12-08 16:40:06 -05:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-11-30 10:42:18 +11:00
2023-12-19 14:57:49 +01:00
2024-03-19 10:45:32 +01:00
2024-01-26 12:40:01 +01:00
2024-03-18 15:04:12 +01:00
2024-01-21 13:22:16 +01:00
2023-11-07 09:50:51 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-11-16 12:00:26 +01:00
2024-01-12 13:56:28 +01:00
2024-03-23 11:29:46 +00:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2024-03-18 15:04:12 +01:00
2023-10-20 16:47:41 +02:00
2024-03-18 15:04:12 +01:00
2024-01-19 20:29:38 +01:00
2024-01-05 13:26:22 -05:00
2023-08-18 08:56:12 +10:00
2024-02-01 09:21:55 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-12-07 12:45:27 +11:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-01-19 20:29:38 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-01-11 16:46:46 +11:00
2024-01-31 18:57:06 +01:00
2023-08-16 00:20:26 +10:00
2023-12-14 16:17:55 +01:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2024-01-11 11:01:50 -05:00
2024-01-03 13:38:14 +01:00
2023-08-16 00:20:26 +10:00
2023-09-19 11:09:20 +10:00
2023-06-07 14:17:37 +02:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-11-28 16:13:09 -05:00
2024-03-18 15:04:12 +01:00
2023-11-28 16:13:09 -05:00
2024-03-18 15:04:12 +01:00
2023-12-20 15:32:52 +01:00
2024-01-08 11:24:37 +11:00
2024-01-08 11:24:37 +11:00
2023-12-20 15:32:52 +01:00
2024-01-10 15:20:29 +01:00
2023-12-20 15:32:52 +01:00
2024-01-04 15:07:48 -05:00
2024-03-18 15:04:12 +01:00
2024-02-03 18:13:34 +01:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00
2024-03-18 15:04:12 +01:00
2023-08-16 00:20:26 +10:00