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
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:
parent
036d798813
commit
5b74ee1f29
@ -157,6 +157,7 @@ class QFitResult(QtWidgets.QDialog, Ui_Dialog):
|
|||||||
def reset_fit_ranges(self):
|
def reset_fit_ranges(self):
|
||||||
for i in range(self.sets_comboBox.count()):
|
for i in range(self.sets_comboBox.count()):
|
||||||
graph_id = self.sets_comboBox.itemData(i)
|
graph_id = self.sets_comboBox.itemData(i)
|
||||||
|
if graph_id in self.graph_opts:
|
||||||
self.graph_opts.pop(graph_id)
|
self.graph_opts.pop(graph_id)
|
||||||
|
|
||||||
self.fit_plot.enableAutoRange()
|
self.fit_plot.enableAutoRange()
|
||||||
|
Loading…
Reference in New Issue
Block a user