@@ -91,9 +91,8 @@ async fn process_notifications(
91
91
// interrupt time. Other methods in this file should be
92
92
// written in accordance and avoid causing R interrupt
93
93
// checks while they themselves access the device.
94
- DEVICE_CONTEXT . with_borrow ( |ctx| {
95
- ctx. current_render_settings . replace ( plot_render_settings)
96
- } ) ;
94
+ DEVICE_CONTEXT
95
+ . with_borrow ( |ctx| ctx. prerender_settings . replace ( plot_render_settings) ) ;
97
96
} ,
98
97
}
99
98
}
@@ -168,7 +167,7 @@ struct DeviceContext {
168
167
wrapped_callbacks : WrappedDeviceCallbacks ,
169
168
170
169
/// The settings used for pre-renderings of new plots.
171
- current_render_settings : Cell < PlotRenderSettings > ,
170
+ prerender_settings : Cell < PlotRenderSettings > ,
172
171
}
173
172
174
173
impl DeviceContext {
@@ -183,7 +182,7 @@ impl DeviceContext {
183
182
id : RefCell :: new ( Self :: new_id ( ) ) ,
184
183
sockets : RefCell :: new ( HashMap :: new ( ) ) ,
185
184
wrapped_callbacks : WrappedDeviceCallbacks :: default ( ) ,
186
- current_render_settings : Cell :: new ( PlotRenderSettings {
185
+ prerender_settings : Cell :: new ( PlotRenderSettings {
187
186
size : PlotSize {
188
187
width : 640 ,
189
188
height : 400 ,
@@ -501,7 +500,7 @@ impl DeviceContext {
501
500
POSITRON_PLOT_CHANNEL_ID . to_string ( ) ,
502
501
) ;
503
502
504
- let settings = self . current_render_settings . get ( ) ;
503
+ let settings = self . prerender_settings . get ( ) ;
505
504
506
505
// Prepare a pre-rendering of the plot so Positron has something to display immediately
507
506
let data = match self . render_plot ( id, & settings) {
0 commit comments