Skip to content

Commit

Permalink
Merge pull request #121 from googlefonts/issue34
Browse files Browse the repository at this point in the history
Always rebuild the project list when asking for the list
  • Loading branch information
justvanrossum authored Nov 6, 2023
2 parents b8ce39c + c1d9b9a commit 5f02cad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fontra_rcjk/projectmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ async def projectAvailable(self, path):
return path in self.projectMapping

async def getProjectList(self):
await self._setupProjectList()
await self._setupProjectList(True)
return sorted(self.projectMapping)

async def _setupProjectList(self):
if self.projectMapping is not None:
async def _setupProjectList(self, forceRebuild=False):
if not forceRebuild and self.projectMapping is not None:
return
projectMapping = await self.rcjkClient.get_project_font_uid_mapping()
projectMapping = {f"{p}/{f}": uids for (p, f), uids in projectMapping.items()}
Expand Down

0 comments on commit 5f02cad

Please sign in to comment.