mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-10 05:52:44 +00:00
Fix connection issues with CC2 on Linux (#14024)
This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 353 B |
265
resources/web/elegoolink/lan_service_web/index.html
Normal file
265
resources/web/elegoolink/lan_service_web/index.html
Normal file
File diff suppressed because one or more lines are too long
@@ -243,12 +243,10 @@ void PrinterWebView::SendAPIKey()
|
||||
m_apikey);
|
||||
m_browser->RemoveAllUserScripts();
|
||||
|
||||
#ifdef _WIN32
|
||||
// RemoveAllUserScripts causes WebView2 to forget about our script message handler,
|
||||
// RemoveAllUserScripts causes WebView to forget about our script message handler,
|
||||
// so re-add it here.
|
||||
m_browser->RemoveScriptMessageHandler("wx");
|
||||
m_browser->AddScriptMessageHandler("wx");
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
// Re-inject the vue-resize/WebKitGTK workaround that RemoveAllUserScripts just cleared.
|
||||
|
||||
@@ -405,7 +405,7 @@ namespace Slic3r {
|
||||
if (classify_printer_model(config->opt_string("printer_model")) != ElegooPrinterType::CC2)
|
||||
return fallback_webui;
|
||||
|
||||
std::string web_path = resources_dir() + "/plugins/elegoolink/web/lan_service_web/index.html";
|
||||
std::string web_path = resources_dir() + "/web/elegoolink/lan_service_web/index.html";
|
||||
std::replace(web_path.begin(), web_path.end(), '\\', '/');
|
||||
web_path = "file://" + web_path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user