Commit b7470270e3a579f98e8e36aa1645cd4d9192bd61

Authored by Thiago Franco de Moraes
1 parent 5eb91f64
Exists in master

Setting gui threshold values on showing mask

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -1117,8 +1117,14 @@ class Slice(metaclass=utils.Singleton):
1117 1117  
1118 1118 if value:
1119 1119 threshold_range = proj.mask_dict[index].threshold_range
  1120 + edition_threshold_range = proj.mask_dict[index].edition_threshold_range
1120 1121 Publisher.sendMessage(
1121   - "Set edition threshold gui", threshold_range=threshold_range
  1122 + "Set edition threshold gui",
  1123 + threshold_range=edition_threshold_range
  1124 + )
  1125 + Publisher.sendMessage(
  1126 + "Set threshold values in gradient",
  1127 + threshold_range=threshold_range
1122 1128 )
1123 1129  
1124 1130 if index == self.current_mask.index:
... ...