mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Added menu command Configuration/Language to standalone gcode viewer
This commit is contained in:
parent
f16ef0643c
commit
21366f56e7
6 changed files with 53 additions and 25 deletions
|
@ -1530,7 +1530,7 @@ bool GLCanvas3D::init()
|
|||
if (m_initialized)
|
||||
return true;
|
||||
|
||||
if ((m_canvas == nullptr) || (m_context == nullptr))
|
||||
if (m_canvas == nullptr || m_context == nullptr)
|
||||
return false;
|
||||
|
||||
glsafe(::glClearColor(1.0f, 1.0f, 1.0f, 1.0f));
|
||||
|
@ -1580,8 +1580,7 @@ bool GLCanvas3D::init()
|
|||
m_layers_editing.init();
|
||||
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
if (!m_main_toolbar.is_enabled())
|
||||
{
|
||||
if (!m_main_toolbar.is_enabled()) {
|
||||
if (!m_gcode_viewer.init())
|
||||
return false;
|
||||
}
|
||||
|
@ -5128,7 +5127,7 @@ bool GLCanvas3D::_set_current()
|
|||
|
||||
void GLCanvas3D::_resize(unsigned int w, unsigned int h)
|
||||
{
|
||||
if ((m_canvas == nullptr) && (m_context == nullptr))
|
||||
if (m_canvas == nullptr && m_context == nullptr)
|
||||
return;
|
||||
|
||||
auto *imgui = wxGetApp().imgui();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue