mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-26 10:21:00 +00:00
feat: faster startup by lazy-loading main window panels on idle or first use (#15811)
This commit is contained in:
@@ -219,6 +219,7 @@ WebViewPanel::WebViewPanel(wxWindow *parent)
|
||||
Bind(wxEVT_CLOSE_WINDOW, &WebViewPanel::OnClose, this);
|
||||
|
||||
m_LoginUpdateTimer = nullptr;
|
||||
update_mode();
|
||||
}
|
||||
|
||||
WebViewPanel::~WebViewPanel()
|
||||
@@ -416,8 +417,7 @@ void WebViewPanel::OnClose(wxCloseEvent& evt)
|
||||
|
||||
void WebViewPanel::OnFreshLoginStatus(wxTimerEvent &event)
|
||||
{
|
||||
auto mainframe = Slic3r::GUI::wxGetApp().mainframe;
|
||||
if (mainframe && mainframe->m_webview == this) {
|
||||
if (WebViewPanel::if_built() == this) {
|
||||
auto* app_config = Slic3r::GUI::wxGetApp().app_config;
|
||||
if (app_config && app_config->get_stealth_mode()) return;
|
||||
Slic3r::GUI::wxGetApp().get_login_info(ORCA_CLOUD_PROVIDER);
|
||||
|
||||
Reference in New Issue
Block a user