mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-06 11:47:58 -05:00
Merge branch 'main' into feature/mcp
This commit is contained in:
commit
867ba9b005
300 files changed
+18531
-2298
No files matched your search
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/format.hpp>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
@@ -238,7 +239,10 @@ void PrinterWebView::load_url(wxString& url, wxString apikey)
|
||||
m_url_loaded = false;
|
||||
m_handler = create_printer_webview_handler(*this);
|
||||
|
||||
if (this->IsShown()) {
|
||||
// Orca: IsShownOnScreen(), not IsShown(): the idle prebuild builds this view inside the hidden
|
||||
// Device tab, and a new panel counts as shown, so the page and its camera stream would start
|
||||
// before the tab is opened. Show() loads the deferred page.
|
||||
if (this->IsShownOnScreen()) {
|
||||
//ORCA: m_url_deferred will be cleared on load success
|
||||
//m_url_deferred.clear();
|
||||
m_browser->LoadURL(url);
|
||||
|
||||
Reference in new issue
Block a user