Do not render intermediate states while reload from disk action is taking place

This commit is contained in:
Enrico Turri 2019-09-06 13:49:15 +02:00
parent a7a01bfc72
commit fe07bde385
3 changed files with 12 additions and 1 deletions

View file

@ -403,6 +403,7 @@ private:
std::unique_ptr<RetinaHelper> m_retina_helper;
#endif
bool m_in_render;
bool m_render_enabled;
LegendTexture m_legend_texture;
WarningTexture m_warning_texture;
wxTimer m_timer;
@ -533,6 +534,9 @@ public:
void enable_dynamic_background(bool enable);
void allow_multisample(bool allow);
void enable_render(bool enable) { m_render_enabled = enable; }
bool is_render_enabled() const { return m_render_enabled; }
void zoom_to_bed();
void zoom_to_volumes();
void zoom_to_selection();