From 1e57c72d24ed23cc39d4313fe68ada5630336378 Mon Sep 17 00:00:00 2001 From: Frederik Berlaen Date: Tue, 12 Dec 2023 16:48:04 +0100 Subject: [PATCH] dont reload the list while the list is edited --- DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py b/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py index 03fc7de..0755459 100644 --- a/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py +++ b/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py @@ -1105,10 +1105,11 @@ def axisListDoubleClickCallback(self, sender): self.axisPopover = AxisAttributesPopover(self.axes.list, self.operator, closeCallback=self.axesChangedCallback) def axesListEditCallback(self, sender): - self.axesChangedCallback() + self.axesChangedCallback(shouldReload=False) - def axesChangedCallback(self): - self.axes.list.getNSTableView().reloadData() + def axesChangedCallback(self, shouldReload=True): + if shouldReload: + self.axes.list.getNSTableView().reloadData() self.setDocumentNeedSave(True, who="Axes") def axesListSelectionCallback(self, sender):