Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always rebuild the project list when asking for the list #121

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading