Skip to content

FIX: Open provided file at startup#11419

Merged
Noisyfox merged 3 commits into
OrcaSlicer:mainfrom
kisslorand:FIX-Trigger-project-restore-when-opening-local-files
Nov 22, 2025
Merged

FIX: Open provided file at startup#11419
Noisyfox merged 3 commits into
OrcaSlicer:mainfrom
kisslorand:FIX-Trigger-project-restore-when-opening-local-files

Conversation

@kisslorand

@kisslorand kisslorand commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Opening OrcaSlicer by double-clicking an STL/3MF (or sending a model from Fusion360) caused the model to appear for a split second and then vanish, leaving an empty build plate.

This regression came from porting a change from Bambu Studio. The fix was correct for their codebase, but since OrcaSlicer doesn't have that issue, bringing it over ended up causing startup files to be ignored.

This PR restores the correct behavior:

  • If OrcaSlicer is launched with a file, that file now loads and stays visible.
  • If OrcaSlicer is launched without a file, the normal “restore previous project” behavior still works.

This makes file-based launching reliable again.

Fixes #11438

@NanashiTheNameless

Copy link
Copy Markdown
Contributor

Confirmed: error reproduced!

@kisslorand kisslorand force-pushed the FIX-Trigger-project-restore-when-opening-local-files branch from 601a908 to 15b30b7 Compare November 21, 2025 10:02
Comment thread src/slic3r/GUI/GUI_App.cpp
@Noisyfox

Copy link
Copy Markdown
Collaborator

I think what's better option is to cherrypick this change instead:
bambulab/BambuStudio@ad29815

Otherwise when you opening files the unsaved previous project will vanish silently.

@kisslorand

kisslorand commented Nov 22, 2025

Copy link
Copy Markdown
Contributor Author

Just tested and the project is not overwritten, the opened object is added to the existing one or existing ones, just as it was before, just as it feels natural.
The suggested commit cannot be cherry-picked as in Orca 'is_empty_project' is not a member of 'Slic3r::GUI::Plater'.

Anyway it feels awkward to try to restore a previous project when you explicitly open Orca with a specific file in mind...

@Noisyfox

Copy link
Copy Markdown
Collaborator

Anyway it feels awkward to try to restore a previous project when you explicitly open Orca with a specific file in mind...

But that gives the user the last chance to restore an unsaved project if he/she accidentally double clicked a 3mf file instead of the orca app shortcut after an app crash/power lost etc.

@Glod76

Glod76 commented Nov 22, 2025

Copy link
Copy Markdown

I’m having the same problem—when I open a 3MF file or stl from Windows Explorer, it appears for a split second and then disappears. it disappeared when the bed zooms in and centers

@kisslorand

Copy link
Copy Markdown
Contributor Author

I think what's better option is to cherrypick this change instead: bambulab/BambuStudio@ad29815

Otherwise when you opening files the unsaved previous project will vanish silently.

Done

@kisslorand kisslorand force-pushed the FIX-Trigger-project-restore-when-opening-local-files branch 2 times, most recently from b77077d to 751615b Compare November 22, 2025 12:30
@kisslorand kisslorand changed the title FIX: Trigger project restore when opening local files FIX: Open provided file at startup Nov 22, 2025
Comment thread src/slic3r/GUI/Plater.hpp Outdated
@kisslorand kisslorand force-pushed the FIX-Trigger-project-restore-when-opening-local-files branch from 751615b to 6b2e423 Compare November 22, 2025 12:41

@Noisyfox Noisyfox left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@Noisyfox Noisyfox merged commit 589eb2c into OrcaSlicer:main Nov 22, 2025
12 checks passed
dbaarda pushed a commit to dbaarda/OrcaSlicer that referenced this pull request Nov 27, 2025
* main: (272 commits)
  Delete validate-documentation.yml (OrcaSlicer#11477)
  Update printer profiles for Artillery (OrcaSlicer#11284)
  Fix emulated spiral Z-hop XY offset on multi-plate slicing (OrcaSlicer#11468)
  Move WIKI to new repo
  Validate invalid fields for hidden system profiles (OrcaSlicer#11455)
  ci: Increase timeout for dedupe-issues workflow from 10 to 30 minutes
  Fix CICD AI dedupe
  Change runner from self-hosted to ubuntu-latest
  Check duplicated issues. ported from Claude code repo (OrcaSlicer#11454)
  UI fixes / improvements (OrcaSlicer#11413)
  Fix Spiral Z-Hop arc handling (OrcaSlicer#11430)
  FIX: Open provided file at startup (OrcaSlicer#11419)
  Re-include BBS's Clipperutils2 (OrcaSlicer#11415)
  Fix filament profile import if inherit from vendor generic (OrcaSlicer#11398)
  Fix crash after syncing printer (OrcaSlicer#11428)
  Wiki 16 (MiniUpdate): Updated by Stable cmake 4.2 release + VS2026 First (OrcaSlicer#11423)
  Revert "fix GITHUB_TOKEN permissions in workflows (OrcaSlicer#11392)"
  correct oversight in OrcaSlicer#11392 (OrcaSlicer#11404)
  Profiles for Creality K2 Pro printer (OrcaSlicer#11315)
  Reduce artifacts from short travel moves before external perimeters (OrcaSlicer#10722)
  ...
dbaarda pushed a commit to dbaarda/OrcaSlicer that referenced this pull request Dec 1, 2025
* upd-eigen-5.0.0: (273 commits)
  Delete validate-documentation.yml (OrcaSlicer#11477)
  Update printer profiles for Artillery (OrcaSlicer#11284)
  Fix emulated spiral Z-hop XY offset on multi-plate slicing (OrcaSlicer#11468)
  Move WIKI to new repo
  Validate invalid fields for hidden system profiles (OrcaSlicer#11455)
  ci: Increase timeout for dedupe-issues workflow from 10 to 30 minutes
  Fix CICD AI dedupe
  Change runner from self-hosted to ubuntu-latest
  Check duplicated issues. ported from Claude code repo (OrcaSlicer#11454)
  UI fixes / improvements (OrcaSlicer#11413)
  Fix Spiral Z-Hop arc handling (OrcaSlicer#11430)
  FIX: Open provided file at startup (OrcaSlicer#11419)
  Re-include BBS's Clipperutils2 (OrcaSlicer#11415)
  Fix filament profile import if inherit from vendor generic (OrcaSlicer#11398)
  Fix crash after syncing printer (OrcaSlicer#11428)
  Wiki 16 (MiniUpdate): Updated by Stable cmake 4.2 release + VS2026 First (OrcaSlicer#11423)
  Revert "fix GITHUB_TOKEN permissions in workflows (OrcaSlicer#11392)"
  correct oversight in OrcaSlicer#11392 (OrcaSlicer#11404)
  Profiles for Creality K2 Pro printer (OrcaSlicer#11315)
  Reduce artifacts from short travel moves before external perimeters (OrcaSlicer#10722)
  ...
@kisslorand kisslorand deleted the FIX-Trigger-project-restore-when-opening-local-files branch December 29, 2025 09:21
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.

macOS: 3mf project files closing immediately when opened from Finder

4 participants