Created attachment 201857 [details] Demonstration video Actual behavior: When using the "Tabbed" notebookbar UI layout type, in Calc, in the "Review" tab, both the "Comment" and "Edit comment" buttons are shown at all times, which is wasting precious horizontal space in the toolbar, because those two actions are mutually exclusive, particularly when a single cell is selected (but even if multiple cells are selected, you can only insert a comment in one cell at a time, and you can only edit a single comment at a time, both of which behave unpredictably wrt the selection). Expected behavior, when a cell is selected: * If the cell doesn't have an existing comment: only show the "Comment" button * If the cell has an existing comment: only show the "Edit comment" button --- This was observed with: Version: 25.2.4.3 (X86_64) / LibreOffice Community Build ID: 33e196637044ead23f5c3226cde09b47731f7e27 CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Flatpak Calc: threaded
The potentially simpler alternative to playing whack-a-mole (always toggling the statuses of those two buttons from that pair) might be to have only one button that does both functions, i.e.: * Automatically create the comment when there is none; * Edit the comment when there is an existing one. With that, I believe it would also make sense to disable the button entirely when a selection comprises more than one cell, since comments apparently can't be applied to regions in practice, only single cells.