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

Status bar: Fix MenuButtons being generated always with image #9057

Merged
merged 1 commit into from
May 17, 2024

Conversation

pedropintosilva
Copy link
Contributor

Before this commit menu buttons were always generated with img even if
it's not applicable. Example, the StateTableCellMenu (located in Calc
status bar that allows setting a state according to the function
chosen in the submenu): This text-only menu was generated with img
and thus throwing a 404 error in the console.

  • Allow any unoToolButton to be set without image via option
  • Add image: false option when setting StateTableCellMenu in the
    statusbar

Signed-off-by: Pedro Pinto Silva pedro.silva@collabora.com
Change-Id: I3fc3b5954f80229835526819b9b80d2a650bd922

@pedropintosilva
Copy link
Contributor Author

pedropintosilva commented May 15, 2024

Note: it seems it fails on unit test but it seems unrelated (I will probably re-try it in the CI). Locally cypress tests pass .

Copy link
Contributor

@gokaysatir gokaysatir left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement :)

@pedropintosilva pedropintosilva force-pushed the private/pedro/StateTableCellMenu-no-image branch from f9642f7 to 572ab12 Compare May 16, 2024 09:11
@pedropintosilva pedropintosilva enabled auto-merge (rebase) May 16, 2024 09:11
Before this commit menu buttons were always generated with img even if
it's not applicable. Example, the StateTableCellMenu (located in Calc
status bar that allows setting a state according to the function
chosen in the submenu): This text-only menu was generated with img
and thus throwing a 404 error in the console.

- Allow any unoToolButton to be set without image via option
- Add image: false option when setting StateTableCellMenu in the
statusbar

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3fc3b5954f80229835526819b9b80d2a650bd922
@pedropintosilva pedropintosilva force-pushed the private/pedro/StateTableCellMenu-no-image branch from 572ab12 to a5ae715 Compare May 17, 2024 09:20
@pedropintosilva pedropintosilva merged commit ab04084 into master May 17, 2024
14 checks passed
@pedropintosilva pedropintosilva deleted the private/pedro/StateTableCellMenu-no-image branch May 17, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants