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

A duplicate menu bar is created each time a new project is called from the file menu #6

Open
He1my opened this issue Jul 27, 2014 · 0 comments

Comments

@He1my
Copy link

He1my commented Jul 27, 2014

after starting colt then selecting "new project" from the file menu, each time a new menu bar is added with the difference being the top most menu bar shows more projects under file>open recent.
digging into the code i saw that the call to
appMenu.buildMenu($scope, json.array); at line 288 in services.js is called every time a new project is created to update the "open recent" menu and each time the "buildMenu" function is called, a new menu bar is created.
"buildMenu" should either delete the old menu before creating a new one, or only update the "open recent" sub menu if the recentProjectsPaths array wasn't empty

i have only tested this on linux running KDE, COLT 2.0 Beta 23
colt_1

@He1my He1my changed the title Double menu bar after browsing for files A duplicate menu bar is created each time a new project is called from the file menu Jul 27, 2014
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