[ui] app: Rename _getRecentProjectFiles function

It is renamed to `_getRecentProjectFilesFromSettings`.
This commit is contained in:
Candice Bentéjac 2025-01-20 16:21:14 +01:00
parent de7777f8b0
commit 18a0bdf8f3

View file

@ -244,7 +244,7 @@ class MeshroomApp(QApplication):
meshroom.core.initSubmitters() meshroom.core.initSubmitters()
# Initialize the list of recent project files # Initialize the list of recent project files
self._recentProjectFiles = self._getRecentProjectFiles() self._recentProjectFiles = self._getRecentProjectFilesFromSettings()
# Flag set to True if, for all the project files in the list, thumbnails have been retrieved when they # Flag set to True if, for all the project files in the list, thumbnails have been retrieved when they
# are available. If set to False, then all the paths in the list are accurate, but some thumbnails might # are available. If set to False, then all the paths in the list are accurate, but some thumbnails might
# be retrievable # be retrievable
@ -381,15 +381,14 @@ class MeshroomApp(QApplication):
return thumbnail return thumbnail
def _getRecentProjectFiles(self) -> list[dict[str, str]]: def _getRecentProjectFilesFromSettings(self) -> list[dict[str, str]]:
""" """
Read the list of recent project files from the QSettings, retrieve their filepath, and if it exists, their Read the list of recent project files from the QSettings, retrieve their filepath, and if it exists, their
thumbnail. thumbnail.
Returns: Returns:
list[dict[str, str]]: The list containing dictionaries of the form {"path": "/path/to/project/file", The list containing dictionaries of the form {"path": "/path/to/project/file", "thumbnail":
"thumbnail": "/path/to/thumbnail"} "/path/to/thumbnail"} based on the recent projects stored in the QSettings.
based on the recent projects stored in the QSettings.
""" """
projects = [] projects = []
settings = QSettings() settings = QSettings()