Skip to content

Commit

Permalink
Dont set the path when its None in the window title and url
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Dec 12, 2023
1 parent 1a3ecc3 commit 07e0c74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,8 +1714,9 @@ def setDocumentNeedSave(self, state=True, **notificationsKwargs):
self.w.getNSWindow().setDocumentEdited_(False)

def setWindowTitleFromPath(self, path):
self.w.getNSWindow().setRepresentedURL_(AppKit.NSURL.fileURLWithPath_(path))
self.w.setTitle(os.path.basename(path))
if path is not None:
self.w.getNSWindow().setRepresentedURL_(AppKit.NSURL.fileURLWithPath_(path))
self.w.setTitle(os.path.basename(path))

def updateColumnHeadersFromAxes(self):
updateLists = [
Expand Down

0 comments on commit 07e0c74

Please sign in to comment.