Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Handle 'unlocked panes' state for undocking without generating a new window #5487

Merged
merged 2 commits into from
Oct 17, 2017

Conversation

dalthviz
Copy link
Member

Fixes #5486

@jnsebgosselin
Copy link
Member

Thanks for the quick fix @dalthviz. I've tested your solution locally and it is working for all plugins, but it is still crashing with the Editor.

moving_plugins_around2

@dalthviz
Copy link
Member Author

Thanks a lot for the testing and feedback @jnsebgosselin 👍

@ccordoba12
Copy link
Member

@jnsebgosselin, please approve so I can merge this one :-)

@jnsebgosselin
Copy link
Member

I confirm that Spyder is not crashing anymore when dragging plugins with the mouse when Lock panes is unchecked 🎉

Just to be sure everyone understands the implications of these changes before merging, new windows will now be created when undocking plugins only when Lock panes is checked. Spyder will revert to the old behaviour when Lock panes is unchecked, i.e. Spyder will never create new windows when undocking plugins, even when undocking with the buttons.

I think this make sense and I vote 👍 for this change.

undocking_behave

@jnsebgosselin
Copy link
Member

Some other observations that I'm noting here, but that are maybe out of the scope of this PR:

  1. I think that new windows should also be created when undocking plugin from their cog menu when Lock panes is checked. Currently, undocking a plugin from its cog menu never create a new window, whether Lock panes is checked or not.

undocking_cog

  1. The Undock action in the plugins cog menu is not disabled when undocking plugins through their undock button. This does not generate any bug, so it's not a big deal, but it is confusing a little bit.

undock_not_deactivated

  1. Instead of disabling the Undock action in the plugin cog menu when it is undocked, I would replaced it by a Dock action.

image

@ccordoba12
Copy link
Member

Some other observations

Thanks Jean for your observations. Please open a new issue about them, so we can discuss them there.

@ccordoba12 ccordoba12 changed the title PR: Handling 'unlocked panes' state for undocking without generating a window PR: Handle 'unlocked panes' state for undocking without generating a new window Oct 17, 2017
@ccordoba12 ccordoba12 merged commit 6b0ed63 into spyder-ide:master Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants