Skip to content

Commit

Permalink
Merge pull request #263 from jenshnielsen/fix_reloading
Browse files Browse the repository at this point in the history
don't reload db while a reload is already in progress
  • Loading branch information
jenshnielsen committed Feb 11, 2022
2 parents ab0424c + 4d45301 commit e505fcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plottr/apps/inspectr.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ def updateDates(self) -> None:
@Slot()
def refreshDB(self) -> None:
if self.filepath is not None:
if self.loadDBThread.isRunning():
return
if self.dbdf is not None and self.dbdf.size > 0:
self.latestRunId = self.dbdf.index.values.max()
else:
Expand Down

0 comments on commit e505fcc

Please sign in to comment.