Skip to content

Commit 80b7bff

Browse files
committed
qtplasmac: prevent extra temporary material addition from conversational
1 parent 9abd512 commit 80b7bff

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = '1.236.296'
1+
VERSION = '1.236.297'
22

33
'''
44
qtplasmac_handler.py
@@ -4878,7 +4878,8 @@ def material_temp_pin_changed(self, halpin):
48784878
elif line.startswith('CUT_MODE'):
48794879
mat[13] = float(line.split('=')[1].strip())
48804880
self.write_materials_to_dict(mat)
4881-
self.materialList.append(halpin)
4881+
if halpin not in self.materialList:
4882+
self.materialList.append(halpin)
48824883
exists = False
48834884
for n in range(self.w.materials_box.count()):
48844885
if self.w.materials_box.itemText(n) .startswith(str(halpin)):

share/qtvcp/screens/qtplasmac/versions.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ <h2>QtPlasmaC Version History</h2>
3030
</table>
3131
<br>
3232
<!--- ****** ADD NEXT VERSION BELOW THIS LINE ****** --->
33+
<br><b><u>v1.236.297 2023 Oct 31</u></b>
34+
<ul style="margin:0;">
35+
<li>prevent extra temporary material addition from conversational</li>
36+
</ul>
37+
3338
<br><b><u>v1.236.296 2023 Oct 28</u></b>
3439
<ul style="margin:0;">
3540
<li>fix imperial cut parameter ranges</li>

0 commit comments

Comments
 (0)