Skip to content

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

Description

@He1my

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions