Apply danger style for certain options in context menu

I tried MenuItem.setSection("danger") but seems like it doesn’t help. If I missed something obvious? The plugin options related to file deletion would have the button styled in red when hover.

Okay I found the undocumented setWarning() would achieve this. Will use on my own risk.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.