mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
NEW: add HMS to query hms info
display hms msg in HMS tab of Monitor Change-Id: I4df1c63b104463ba62cdf7eb079a540a4176f8c5 Signed-off-by: Stone Li <stone.li@bambulab.com> (cherry picked from commit f4635d18f3383e70177536dfbe5edf2e1370b746)
This commit is contained in:
parent
efd20d0a84
commit
73e4078348
17 changed files with 385 additions and 128 deletions
|
@ -1087,6 +1087,12 @@ void GUI_App::post_init()
|
|||
mainframe->refresh_plugin_tips();
|
||||
});
|
||||
|
||||
// update hms info
|
||||
CallAfter([this] {
|
||||
if (hms_query)
|
||||
hms_query->check_hms_info();
|
||||
});
|
||||
|
||||
BOOST_LOG_TRIVIAL(info) << "finished post_init";
|
||||
//BBS: remove the single instance currently
|
||||
/*#ifdef _WIN32
|
||||
|
@ -1109,6 +1115,7 @@ GUI_App::GUI_App()
|
|||
, m_app_mode(EAppMode::Editor)
|
||||
, m_em_unit(10)
|
||||
, m_imgui(new ImGuiWrapper())
|
||||
, hms_query(new HMSQuery())
|
||||
//, m_removable_drive_manager(std::make_unique<RemovableDriveManager>())
|
||||
//, m_other_instance_message_handler(std::make_unique<OtherInstanceMessageHandler>())
|
||||
{
|
||||
|
@ -2605,6 +2612,10 @@ void GUI_App::recreate_GUI(const wxString& msg_name)
|
|||
obj_list()->set_min_height();
|
||||
update_mode();
|
||||
|
||||
//check hms info for different language
|
||||
if (hms_query)
|
||||
hms_query->check_hms_info();
|
||||
|
||||
//BBS: trigger restore project logic here, and skip confirm
|
||||
plater_->trigger_restore_project(1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue