Opened 2 days ago

Last modified 24 hours ago

#19342 new bug

IOM: Disable "Remove" menu item when no transformer is selected (easy) — at Version 1

Reported by: Zardshard Owned by: Zardshard
Priority: normal Milestone: Unscheduled
Component: Applications/Icon-O-Matic Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by nephele)

The Transformer->Remove menu item should ideally be disabled when no transformer is selected, similar to how Shape->Remove, Style->Remove, and Path->Remove function when no shape/style/path is selected.

Note: The Transformer menu will be disabled until you create a shape. Try Shape->Add empty, then you should be able to access the Transformer menu.

Since I'm marking this as easy, here's a hint to get you started: StyleListView::_UpdateMenu() is where the style list enables/disables the Style->Remove menu item. You'll need to update TransformerListView::_UpdateMenu() to do something similar.

This option was introduced in hrev58502 (https://cgit.haiku-os.org/haiku/commit/?id=3aa371a2852fe031e6aa4cdf7db1cb56c931b9bb)

Change History (1)

comment:1 by nephele, 2 days ago

Description: modified (diff)
Version: R1/beta5R1/Development
Note: See TracTickets for help on using tickets.