Commit f17e9109ed0faf06a6539c91882acfe9f91fc991
1 parent
9333ff7d
Exists in
mask_greatest_component
Gui improvements
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
invesalius/gui/dialogs.py
@@ -1404,7 +1404,11 @@ class MaskBooleanDialog(wx.Dialog): | @@ -1404,7 +1404,11 @@ class MaskBooleanDialog(wx.Dialog): | ||
1404 | self.mask2.Append(n, m) | 1404 | self.mask2.Append(n, m) |
1405 | 1405 | ||
1406 | self.mask1.SetSelection(0) | 1406 | self.mask1.SetSelection(0) |
1407 | - self.mask2.SetSelection(0) | 1407 | + |
1408 | + if len(mask_choices) > 1: | ||
1409 | + self.mask2.SetSelection(1) | ||
1410 | + else: | ||
1411 | + self.mask2.SetSelection(0) | ||
1408 | 1412 | ||
1409 | op_choices = ((u"Union", const.BOOLEAN_UNION), | 1413 | op_choices = ((u"Union", const.BOOLEAN_UNION), |
1410 | (u"Difference", const.BOOLEAN_DIFF), | 1414 | (u"Difference", const.BOOLEAN_DIFF), |
invesalius/gui/frame.py
@@ -609,7 +609,7 @@ class MenuBar(wx.MenuBar): | @@ -609,7 +609,7 @@ class MenuBar(wx.MenuBar): | ||
609 | #app(const.ID_EDIT_LIST, "Show Undo List...") | 609 | #app(const.ID_EDIT_LIST, "Show Undo List...") |
610 | ################################################################# | 610 | ################################################################# |
611 | 611 | ||
612 | - file_edit.Append(const.ID_BOOLEAN_MASK, _(u"\tBoolean operations")) | 612 | + file_edit.Append(const.ID_BOOLEAN_MASK, _(u"Boolean operations")) |
613 | 613 | ||
614 | 614 | ||
615 | # VIEW | 615 | # VIEW |