mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-06 10:34:51 -07:00
When running under XWayland (Wayland sessions with GDK_BACKEND=x11), WebKit2GTK's compositing mode can fail silently, causing the Setup Wizard WebView to freeze or render blank. This leaves users stuck on the "Loading......" screen indefinitely. Changes: - Set WEBKIT_DISABLE_COMPOSITING_MODE=1 to force software rendering, matching the fix used by BambuStudio - Enable the 20-second timeout fallback in load.js so the wizard proceeds even if the C++ -> JavaScript signal fails
27 lines
No EOL
438 B
JavaScript
27 lines
No EOL
438 B
JavaScript
|
|
var TargetPage=null;
|
|
|
|
function OnInit()
|
|
{
|
|
TranslatePage();
|
|
|
|
TargetPage=GetQueryString("target");
|
|
|
|
// Fallback timeout in case the C++ -> JS signal fails (e.g., WebKit issues)
|
|
setTimeout("JumpToTarget()",20*1000);
|
|
}
|
|
|
|
function HandleStudio( pVal )
|
|
{
|
|
let strCmd=pVal['command'];
|
|
|
|
if(strCmd=='userguide_profile_load_finish')
|
|
{
|
|
JumpToTarget();
|
|
}
|
|
}
|
|
|
|
function JumpToTarget()
|
|
{
|
|
window.open('../'+TargetPage+'/index.html','_self');
|
|
} |