Skip to content

Commit

Permalink
[ui] Remove unused variables related to QSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Jan 16, 2023
1 parent d745c07 commit 3d0bc9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meshroom/ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def addRecentProjectFile(self, projectFile):

settings = QSettings()
settings.beginGroup("RecentFiles")
size = settings.beginWriteArray("Projects")
settings.beginWriteArray("Projects")
for i, p in enumerate(projects):
settings.setArrayIndex(i)
settings.setValue("filepath", p)
Expand Down Expand Up @@ -289,7 +289,7 @@ def removeRecentProjectFile(self, projectFile):

settings = QSettings()
settings.beginGroup("RecentFiles")
size = settings.beginWriteArray("Projects")
settings.beginWriteArray("Projects")
for i, p in enumerate(projects):
settings.setArrayIndex(i)
settings.setValue("filepath", p)
Expand Down Expand Up @@ -337,7 +337,7 @@ def addRecentImportedImagesFolder(self, imagesFolder):

settings = QSettings()
settings.beginGroup("RecentFiles")
size = settings.beginWriteArray("ImagesFolders")
settings.beginWriteArray("ImagesFolders")
for i, p in enumerate(folders):
settings.setArrayIndex(i)
settings.setValue("path", p)
Expand Down Expand Up @@ -369,7 +369,7 @@ def removeRecentImportedImagesFolder(self, imagesFolder):

settings = QSettings()
settings.beginGroup("RecentFiles")
size = settings.beginWriteArray("ImagesFolders")
settings.beginWriteArray("ImagesFolders")
for i, f in enumerate(folders):
settings.setArrayIndex(i)
settings.setValue("path", f)
Expand Down

0 comments on commit 3d0bc9e

Please sign in to comment.