Skip to content

[GraphEditor] Only display "Pipelines" menu when templates are available#2678

Merged
yann-lty merged 1 commit into
developfrom
fix/emptyPipelineMenu
Feb 25, 2025
Merged

[GraphEditor] Only display "Pipelines" menu when templates are available#2678
yann-lty merged 1 commit into
developfrom
fix/emptyPipelineMenu

Conversation

@cbentejac

Copy link
Copy Markdown
Contributor

Description

This PR adjusts the display of the "Pipelines" entry in the node menu depending on the number of available templates. If no template is available, the entry simply is not added to the node menu; if there is at least one template, then it is added to the node menu.

Before this change, in the node menu (displayed when pressing "Tab" or right-clicking in the Graph Editor), the "Pipelines" menu entry used to be displayed even if there was no available template (the entry would open to display an empty list).

If no template is available at the beginning of the session but the user saves one in one of the folders that are expected to contain templates, the entry will be added to the menu without restarting the session.

In the node menu (displayed when pressing "Tab" or right-clicking in the
Graph Editor), the "Pipelines" menu entry used to be displayed even if
there was no available template (the entry would open to display an
empty list).

This commit adds a check to ensure that the "Pipelines" menu is only
added to the node menu if there is at least one template that is
available. Otherwise, it is not displayed.
@cbentejac cbentejac added this to the Meshroom 2025.1.0 milestone Feb 19, 2025
@cbentejac cbentejac self-assigned this Feb 19, 2025
@codecov

codecov Bot commented Feb 19, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.79%. Comparing base (b29bcfe) to head (1fbf42a).
Report is 6 commits behind head on develop.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2678   +/-   ##
========================================
  Coverage    72.79%   72.79%           
========================================
  Files          129      129           
  Lines         7753     7753           
========================================
  Hits          5644     5644           
  Misses        2109     2109           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yann-lty yann-lty merged commit fb3c1b5 into develop Feb 25, 2025
@yann-lty yann-lty deleted the fix/emptyPipelineMenu branch February 25, 2025 16:38
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.

2 participants