Commit dce7b5fa8c0fd1ec603a4ff7db209ca06dfa2890
1 parent
f9df6fec
Exists in
mask_boolean_op_bkp
Gui improvements
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
invesalius/gui/dialogs.py
| ... | ... | @@ -1489,7 +1489,11 @@ class MaskBooleanDialog(wx.Dialog): |
| 1489 | 1489 | self.mask2.Append(n, m) |
| 1490 | 1490 | |
| 1491 | 1491 | self.mask1.SetSelection(0) |
| 1492 | - self.mask2.SetSelection(0) | |
| 1492 | + | |
| 1493 | + if len(mask_choices) > 1: | |
| 1494 | + self.mask2.SetSelection(1) | |
| 1495 | + else: | |
| 1496 | + self.mask2.SetSelection(0) | |
| 1493 | 1497 | |
| 1494 | 1498 | op_choices = ((u"Union", const.BOOLEAN_UNION), |
| 1495 | 1499 | (u"Difference", const.BOOLEAN_DIFF), | ... | ... |
invesalius/gui/frame.py
| ... | ... | @@ -609,7 +609,7 @@ class MenuBar(wx.MenuBar): |
| 609 | 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 | 615 | # VIEW | ... | ... |