Skip to content

Sync main into build_platform_engineering - #872

Merged
zhangzhend0ng merged 3 commits into
build_platform_engineeringfrom
main
Sep 17, 2026
Merged

zhangzhend0ng merged 3 commits into
build_platform_engineeringfrom
main

Conversation

@SukiSunYuhang

Copy link
Copy Markdown

Summary

Sync build_platform_engineering (ae19088) with the latest main (5847490).

Why

Unblocks #870 (MQTT disconnect crash fix) — once this lands, #870 will show only its own 2 fix commits instead of mixing in main's delta.

zhangzhend0ng and others added 3 commits September 16, 2026 19:19
Replace the web logo assets under resources/web/image with the new
Orca icon design (same artwork as the flutter_web 2.3.38 official-site
logo master):

- logo.png: 154x154, new full-bleed icon with the original
  rounded-corner silhouette preserved (wizard/homepage render the PNG
  directly, corners are baked in)
- logo2.png: 339x406, square icon kept at original proportions and
  centered with equal black padding, no stretching

The web bundle copies were missed by the app icon update in #858,
which only touched resources/images/* and the app icon files.
Opening a model from Snapmaker Space downloads and loads it correctly, and
then post_init() throws it away. The model appears on the plate for a moment,
the plate clears and the title becomes "Untitled".

macOS does not pass the URL in argv. LaunchServices starts the app first and
delivers the URL afterwards through MacOpenURL, so init_params->input_files is
empty and switch_to_3d is never set. post_init() therefore takes its ordinary
startup path, sends the user to the home page and calls trigger_restore_project,
which starts a blank project over the model MacOpenURL is loading.

Windows is unaffected because the URL does arrive in argv, switch_to_3d is true,
and that whole block is skipped.

Set a flag in MacOpenURL and check it where switch_to_3d cannot reach, which
gives the URL path on macOS the same treatment it already gets elsewhere.

Fixes #851
#865)

* fix(mac): stabilize local device WebView loads and printer page switching

Declare localhost ATS/local-network entitlements, serialize WKWebView navigations to avoid cancelled -999 white screens, and reload the Device tab URL when switching between U1 and non-U1 printers.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(mac): skip destroyed WKWebView script handler installs

Guard CallAfter and delayed AddScriptMessageHandler against views already removed from g_webviews, matching BambuStudio OrcaSlicer#11004 / OrcaSlicer#10968.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: restore calibration ConfigOptionBools/Floats types in Plater

A later WebView change accidentally reverted #861's arrayed option types.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(mac): let Device WebView navigation gate receive LOADED/ERROR

Bind PrinterWebView handlers on the panel and Skip so WKWebView settle can clear the in-flight URL.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Alves <alves@Alvesmac-3.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: alves <‘liulikeqian@gmail.com’>
@zhangzhend0ng
zhangzhend0ng merged commit 1d886d4 into build_platform_engineering Sep 17, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants