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

Add "Close (go to Dashboard) to repos dropdown #11751

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

RussKie
Copy link
Member

@RussKie RussKie commented May 24, 2024

Proposed changes

  • Extract the working directory / recent repositories dropdown as a standalone component
  • Add "Close (go to Dashboard) to repos dropdown

Screenshots

After

image

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

@pmiossec
Copy link
Member

This comment is still valid: #10906 (comment)

I just discovered that the 1st commit introduce a frustrating new behavior/regression if the mouse don't go straight down:
If you hover an element of the toolbar, the dropdown disappear immediately (which is not the case in last master where the dropdown stay open):
dropdown_close

@mstv
Copy link
Member

mstv commented May 24, 2024

I extracted the first two commits as #11751 as those should be contentious-free.

This comment is still valid: #10906 (comment)

Why create hacks - spread over half of the class - for problems with synchronous execution of overridden methods if it works without pain using event handlers?

@mstv
Copy link
Member

mstv commented May 25, 2024

This comment is still valid: #10906 (comment)

Moreover, closing the dropdown does / not work randomly.

@RussKie
Copy link
Member Author

RussKie commented May 25, 2024 via email

@RussKie
Copy link
Member Author

RussKie commented Jun 23, 2024

Why create hacks - spread over half of the class - for problems with synchronous execution of overridden methods if it works without pain using event handlers?

You've lost me. Could you please elaborate?

@RussKie
Copy link
Member Author

RussKie commented Jun 23, 2024

This comment is still valid: #10906 (comment)

I just discovered that the 1st commit introduce a frustrating new behavior/regression if the mouse don't go straight down:
If you hover an element of the toolbar, the dropdown disappear immediately (which is not the case in last master where the dropdown stay open):

I think I found the reason - I lost the call to the base:

        protected override void OnDropDownShow(EventArgs e)
        {
+           base.OnDropDownShow(e);

Now, it's all working:

11751.mp4

@RussKie RussKie force-pushed the close_repo branch 3 times, most recently from 00d2344 to e6db05c Compare June 23, 2024 08:53
@RussKie RussKie added this to the vNext milestone Jun 23, 2024
Copy link
Member

@mstv mstv left a comment

Choose a reason for hiding this comment

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

seems to work

Why isn't there a change to English.xlf?

@RussKie
Copy link
Member Author

RussKie commented Jun 24, 2024

Why isn't there a change to English.xlf?

Because we're reusing the existing text from FormBrowse. This is achieved with:

        void ITranslate.AddTranslationItems(ITranslation translation)
        {
            TranslationUtils.AddTranslationItemsFromFields("FormBrowse", this, translation);
        }

        void ITranslate.TranslateItems(ITranslation translation)
        {
            TranslationUtils.TranslateItemsFromFields("FormBrowse", this, translation);
        }

@pmiossec
Copy link
Member

pmiossec commented Jun 25, 2024

Now, it's all working:

👍

I pushed 2 fixup commits to fix hotkeys.

image

@RussKie
Copy link
Member Author

RussKie commented Jun 25, 2024

Thank you @pmiossec

@RussKie RussKie force-pushed the close_repo branch 2 times, most recently from b6c5f60 to d60b782 Compare June 27, 2024 14:03
@RussKie RussKie merged commit 075619b into gitextensions:master Jul 3, 2024
4 checks passed
@RussKie RussKie deleted the close_repo branch July 3, 2024 07:37
@RussKie
Copy link
Member Author

RussKie commented Jul 3, 2024

Thank you folks

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.

None yet

4 participants