Skip to content

Make editor windows activatable regardless of editor mode#511

Merged
chrxh merged 2 commits intodevelopfrom
copilot/update-window-activation-behavior
Mar 9, 2026
Merged

Make editor windows activatable regardless of editor mode#511
chrxh merged 2 commits intodevelopfrom
copilot/update-window-activation-behavior

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

SelectionWindow, CreatorWindow, PatternEditorWindow, GenomeEditorWindow, MultiplierWindow, and inspector features were gated behind editor mode activation. They should be independently activatable.

Window visibility

Removed EditorController::get().isOn() from isShown() in all five window classes:

// Before
bool SelectionWindow::isShown() { return _on && EditorController::get().isOn(); }
// After
bool SelectionWindow::isShown() { return _on; }

Menu items

Removed .disabled(!SimulationInteractionController::get().isEditMode()) from all 11 Editor menu items in MainLoopController.cpp. Functional disable conditions (e.g., !isObjectInspectionPossible()) are preserved.

Editor processing

Removed the if (!_on) { return; } early-exit in EditorController::process() so inspector windows and editor model updates continue regardless of editor mode state.

Cleanup

Removed now-unused #include "EditorController.h" from four window .cpp files.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Remove the requirement for editor mode to be activated before opening
SelectionWindow, CreatorWindow, PatternEditorWindow, GenomeEditorWindow,
MultiplierWindow, and inspector-related features.

- Remove EditorController::isOn() check from isShown() in 5 window classes
- Remove .disabled(!isEditMode()) from all Editor menu items
- Remove editor mode guard from EditorController::process()
- Clean up unused EditorController includes

Co-authored-by: chrxh <73127001+chrxh@users.noreply.github.com>
Copilot AI changed the title [WIP] Update windows to be activatable without editor mode Make editor windows activatable regardless of editor mode Mar 9, 2026
Copilot finished work on behalf of chrxh March 9, 2026 19:18
@chrxh chrxh marked this pull request as ready for review March 9, 2026 19:20
@chrxh chrxh merged commit c9b7d1c into develop Mar 9, 2026
@chrxh chrxh deleted the copilot/update-window-activation-behavior branch March 9, 2026 19:20
chrxh added a commit that referenced this pull request Mar 9, 2026
…vation-behavior"

This reverts commit c9b7d1c, reversing
changes made to dc6d6fd.
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.

2 participants