Collapse grid actions if there are only 2

This commit is contained in:
Lance Edgar 2017-02-12 16:07:58 -06:00
parent 9a3dbb9786
commit 2c7270954c

View file

@ -745,7 +745,10 @@ class MasterView(View):
return defaults
def get_grid_actions(self):
return self.get_main_actions(), self.get_more_actions()
main, more = self.get_main_actions(), self.get_more_actions()
if len(main) == 1 and len(more) == 1:
main, more = main + more, []
return main, more
def get_row_attrs(self, row, i):
"""