@@ -123,15 +123,15 @@ fn recording_list_ui(
123
123
) ;
124
124
}
125
125
126
- if !local_recordings. is_empty ( )
126
+ if ( !local_recordings. is_empty ( ) || !ctx . storage_context . tables . is_empty ( ) )
127
127
&& ui
128
128
. list_item ( )
129
129
. header ( )
130
130
. show_hierarchical_with_children (
131
131
ui,
132
132
egui:: Id :: new ( "local items" ) ,
133
133
true ,
134
- list_item:: LabelContent :: header ( "Local Recordings " ) ,
134
+ list_item:: LabelContent :: header ( "Local" ) ,
135
135
|ui| {
136
136
for ( app_id, entity_dbs) in local_recordings {
137
137
dataset_and_its_recordings_ui (
@@ -141,6 +141,9 @@ fn recording_list_ui(
141
141
entity_dbs,
142
142
) ;
143
143
}
144
+ for table_id in ctx. storage_context . tables . keys ( ) {
145
+ table_id_button_ui ( ctx, ui, table_id, UiLayout :: SelectionPanel ) ;
146
+ }
144
147
} ,
145
148
)
146
149
. item_response
@@ -152,16 +155,6 @@ fn recording_list_ui(
152
155
) ) ) ;
153
156
}
154
157
155
- let item = ui. list_item ( ) . header ( ) ;
156
- let title = list_item:: LabelContent :: header ( "Tables" ) ;
157
- if !ctx. storage_context . tables . is_empty ( ) {
158
- item. show_hierarchical_with_children ( ui, egui:: Id :: new ( "tables" ) , true , title, |ui| {
159
- for table_id in ctx. storage_context . tables . keys ( ) {
160
- table_id_button_ui ( ctx, ui, table_id, UiLayout :: SelectionPanel ) ;
161
- }
162
- } ) ;
163
- } ;
164
-
165
158
// Always show welcome screen last, if at all:
166
159
if ( ctx
167
160
. app_options ( )
0 commit comments