Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Fix remove menu performance on Windows #407

Merged
merged 3 commits into from
Jan 4, 2014

Conversation

redmunds
Copy link
Contributor

@redmunds redmunds commented Jan 2, 2014

This fixes menu drawing performance for RemoveMenu() and RemoveMenuItem() in the same way that pull request #377 fixed it for AddMenu().

I noticed this issue when reviewing pull request adobe/brackets#6334.

@pthiess
Copy link
Contributor

pthiess commented Jan 3, 2014

@lkcampbell Please have a look at this and feel free to merge at your convenience.

@@ -50,6 +50,11 @@
static bool ConvertToShortPathName(std::wstring & path);
time_t FiletimeToTime(FILETIME const& ft);

// Redraw timeout variables. See the comment at the bottom of SetMenuTitle for details.
Copy link
Contributor

Choose a reason for hiding this comment

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

You moved the comment from the bottom of SetMenuTitle() to just above ScheduleMenuRedraw(). This comment should reflect that change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@lkcampbell
Copy link
Contributor

@redmunds, initial code review done. Looks good, just one nit on comments. Good idea refactoring the older stable code.

@redmunds
Copy link
Contributor Author

redmunds commented Jan 4, 2014

Changes pushed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants