Disable "group by month" option when there is only one group

When fulltext search is used, there only is one group. It also doesn't
make much sense when there is just one month group as well.
This commit is contained in:
eikek 2022-01-11 18:33:26 +01:00
parent d0d37de6ac
commit 648a81bcdb

View File

@ -326,7 +326,7 @@ defaultMenuBar texts flags settings model =
else
i [ class "fa fa-square font-thin" ] []
, disabled = False
, disabled = List.length model.itemListModel.results.groups <= 1
, label = texts.showItemGroups
, attrs =
[ href "#"