Merge branch 'main' into feature/mcp

This commit is contained in:
SoftFever committed 2026-11-21 18:57:39 +08:00
commit 867ba9b005
300 files changed
+18531 -2298

No files matched your search

+6 -4
View File
@@ -1,4 +1,5 @@
#include "MainFrame.hpp"
#include "slic3r/plugin/host/PluginPages.hpp"
#include <wx/event.h>
#include "slic3r/GUI/Event.hpp"
@@ -413,6 +414,7 @@ MainFrame::~MainFrame() = default;
MainFrame::MainFrame() :
DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_STYLE, "mainframe")
, m_plugin_pages(std::make_unique<PluginPages>())
, m_printhost_queue_dlg(new PrintHostQueueDialog(this))
// BBS
, m_recent_projects(18)
@@ -1373,7 +1375,7 @@ void MainFrame::shutdown()
m_idle.stop();
if (ProjectPanel* project = ProjectPanel::if_built())
project->shutdown();
m_plugin_pages.shutdown();
m_plugin_pages->shutdown();
if (RunScriptPanel* panel = wxGetApp().run_script_panel_if_built())
panel->main_window_closing();
if (m_plater != nullptr)
@@ -1696,7 +1698,7 @@ void MainFrame::init_tabpanel() {
// Plugin pages are appended after the built-in tabs; their ids are namespaced
// (plugin.<plugin_key>.<name>) so they can't collide with the built-in TAB_ID_* constants.
m_plugin_pages.initialize(m_tabpanel);
m_plugin_pages->initialize(m_tabpanel);
if (m_plater) {
// load initial config
@@ -1775,7 +1777,7 @@ void MainFrame::show_device(bool should_use_native) {
#endif // _MSW_DARK_MODE
fit_tab_labels(); // ORCA on printer change
m_plugin_pages.relayout(); // re-sync plugin tabs against the native tabs just mutated above
m_plugin_pages->relayout(); // re-sync plugin tabs against the native tabs just mutated above
if (m_prebuild_started)
m_idle.start();
return;
@@ -1835,7 +1837,7 @@ void MainFrame::show_device(bool should_use_native) {
_L("Device"), "tab_monitor_active");
}
fit_tab_labels(); // ORCA on printer change
m_plugin_pages.relayout(); // re-sync plugin tabs against the native tabs just mutated above
m_plugin_pages->relayout(); // re-sync plugin tabs against the native tabs just mutated above
if (m_prebuild_started)
m_idle.start();
}