Skip to content

fix: center Edit Filament dialog on parent window#10835

Open
BenJule wants to merge 3 commits into
bambulab:masterfrom
BenJule:fix/10720-edit-filament-wrong-monitor
Open

fix: center Edit Filament dialog on parent window#10835
BenJule wants to merge 3 commits into
bambulab:masterfrom
BenJule:fix/10720-edit-filament-wrong-monitor

Conversation

@BenJule
Copy link
Copy Markdown

@BenJule BenJule commented May 20, 2026

Summary

  • EditFilamentPresetDialog was created with wxDefaultPosition, causing the OS to place it on the primary monitor even when Bambu Studio was running on a secondary display.
  • Adding CenterOnParent() in the constructor mirrors the positioning pattern already used by every other dialog in the codebase (e.g. ReleaseNote, KBShortcutsDialog, CaliHistoryDialog).

How to reproduce

  1. Move Bambu Studio to a secondary monitor.
  2. Go to Prepare tab → click a filament's settings icon → Custom Filament → Edit.
  3. The "Edit Filament" dialog opens on the primary monitor instead of the one where Studio is running.

Fix

One line: call this->CenterOnParent() after Fit() in the EditFilamentPresetDialog constructor so the dialog is always centred over its parent window, regardless of which monitor it is on.

Test plan

  • Move Studio to a secondary monitor and open Edit Filament — dialog should appear on the same monitor as Studio.
  • Verify dialog still opens normally when Studio is on the primary monitor.

Fixes #10720

BenJule added 3 commits May 21, 2026 10:52
The upstream build_all.yml only listed 'main' as a push trigger.
BenJule/BambuStudio uses 'master' as its default branch, so CI never
fired on fork-local pushes. Adding 'master' alongside 'main' makes
the full multi-platform build run when master is updated.
EditFilamentPresetDialog was created with wxDefaultPosition, which caused
the OS to place it on the primary monitor even when Bambu Studio was
running on a secondary display.  Adding CenterOnParent() in the
constructor mirrors how every other dialog in the codebase positions
itself (e.g. ReleaseNote, KBShortcutsDialog, CaliHistoryDialog).

Fixes bambulab#10720
@BenJule BenJule force-pushed the fix/10720-edit-filament-wrong-monitor branch from 2c64c7e to 575f09c Compare May 21, 2026 08:55
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.

Custom Filament - Edit Filament pop up windows opens in primary monitor instead of same monitor bambu studio app is at

1 participant