mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
FIX: add load_ams_list call after switch language
Change-Id: Ibc6a994b4e5101439fe947008a7329e5c42b2339
This commit is contained in:
parent
54c5113b79
commit
d61ec596e9
1 changed files with 6 additions and 0 deletions
|
@ -148,6 +148,12 @@ MonitorPanel::~MonitorPanel()
|
|||
m_refresh_timer->SetOwner(this);
|
||||
m_refresh_timer->Start(REFRESH_INTERVAL);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
|
||||
Slic3r::DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||
if (!dev) return;
|
||||
MachineObject *obj_ = dev->get_selected_machine();
|
||||
if (obj_)
|
||||
GUI::wxGetApp().sidebar().load_ams_list(obj_->amsList);
|
||||
}
|
||||
|
||||
void MonitorPanel::init_tabpanel()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue