ui: Hide mark actions that are disabled

For example, it doesn't really make sense to show a "Mark as unread"
button when the email is already marked as unread.
This commit is contained in:
Niels De Graef 2023-08-11 09:58:45 +02:00
parent 40a2c1aec4
commit 9fc0a999ba

View file

@ -4,18 +4,22 @@
<item>
<attribute name="label" translatable="yes">Mark as _Read</attribute>
<attribute name="action">win.mark-conversation-read</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Mark as _Unread</attribute>
<attribute name="action">win.mark-conversation-unread</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Star</attribute>
<attribute name="action">win.mark-conversation-starred</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
<item>
<attribute name="label" translatable="yes">U_nstar</attribute>
<attribute name="action">win.mark-conversation-unstarred</attribute>
<attribute name="hidden-when">action-disabled</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Toggle as _Junk</attribute>