mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 16:36:01 -05:00
Fix connection issues with CC2 on Linux (#14024)
This commit is contained in:
1 parent
72f7b125c6
commit
1469576dec
5 files changed
+267
-287
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user