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

"Create new temporary project..." on Start Page disappears after undocking and redocking the Start Page #8

Open
Neme12 opened this issue Sep 24, 2018 · 0 comments

Comments

@Neme12
Copy link
Collaborator

Neme12 commented Sep 24, 2018

Followup to #5

More details in this comment:

// If you try to make any improvements here, please make sure not only that the button is visible
// when the start page is opened, but also:
// 1. When the user switches to another tab and back to the start page
// 2. When the start page is undocked by dragging the tab
// 3. When the start page is docked again (this currently *doesn't* work)
// 4. The button is never duplicated, for example when switching focus to a different tool window and back
// I've tried many approaches such as doing this in OnFrameIsVisibleChanged, OnActiveFrameChanged,
// IVsWindowFrameNotify.OnShow using IVsWindowFrame2.Advise and even DTE.Events.WindowEvents.
// With all of these approaches there are cases where the button is not recreated because the event is not fired,
// and in some cases it's even fired twice. The current solution is a compromise - the common case works and
// undocking the start page is presumably not that common.

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

No branches or pull requests

1 participant