fitresult: reset displayed ranges only if there is something to reset (#184)
All checks were successful
Build AppImage / Explore-Gitea-Actions (push) Successful in 1m59s

closes #156

Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de>
Reviewed-on: #184
This commit is contained in:
Dominik Demuth 2023-12-17 16:03:39 +00:00
parent 036d798813
commit 5b74ee1f29

View File

@ -157,7 +157,8 @@ class QFitResult(QtWidgets.QDialog, Ui_Dialog):
def reset_fit_ranges(self):
for i in range(self.sets_comboBox.count()):
graph_id = self.sets_comboBox.itemData(i)
self.graph_opts.pop(graph_id)
if graph_id in self.graph_opts:
self.graph_opts.pop(graph_id)
self.fit_plot.enableAutoRange()