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:
parent
40a2c1aec4
commit
9fc0a999ba
1 changed files with 4 additions and 0 deletions
|
|
@ -4,18 +4,22 @@
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">Mark as _Read</attribute>
|
<attribute name="label" translatable="yes">Mark as _Read</attribute>
|
||||||
<attribute name="action">win.mark-conversation-read</attribute>
|
<attribute name="action">win.mark-conversation-read</attribute>
|
||||||
|
<attribute name="hidden-when">action-disabled</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">Mark as _Unread</attribute>
|
<attribute name="label" translatable="yes">Mark as _Unread</attribute>
|
||||||
<attribute name="action">win.mark-conversation-unread</attribute>
|
<attribute name="action">win.mark-conversation-unread</attribute>
|
||||||
|
<attribute name="hidden-when">action-disabled</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">_Star</attribute>
|
<attribute name="label" translatable="yes">_Star</attribute>
|
||||||
<attribute name="action">win.mark-conversation-starred</attribute>
|
<attribute name="action">win.mark-conversation-starred</attribute>
|
||||||
|
<attribute name="hidden-when">action-disabled</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">U_nstar</attribute>
|
<attribute name="label" translatable="yes">U_nstar</attribute>
|
||||||
<attribute name="action">win.mark-conversation-unstarred</attribute>
|
<attribute name="action">win.mark-conversation-unstarred</attribute>
|
||||||
|
<attribute name="hidden-when">action-disabled</attribute>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<attribute name="label" translatable="yes">Toggle as _Junk</attribute>
|
<attribute name="label" translatable="yes">Toggle as _Junk</attribute>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue