Skip to content

Commit

Permalink
dont reload the list while the list is edited
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Dec 12, 2023
1 parent 51f92e2 commit 1e57c72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1e57c72

Please sign in to comment.