Show all grid actions by default, if there are 3 or less

This commit is contained in:
Lance Edgar 2017-08-17 17:25:18 -05:00
parent 63e336d4bb
commit c038d74302

View file

@ -1254,6 +1254,8 @@ class MasterView(View):
main, more = self.get_main_actions(), self.get_more_actions() main, more = self.get_main_actions(), self.get_more_actions()
if len(more) == 1: if len(more) == 1:
main, more = main + more, [] main, more = main + more, []
if len(main + more) <= 3:
main, more = main + more, []
return main, more return main, more
def get_row_attrs(self, row, i): def get_row_attrs(self, row, i):