Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2024
1 parent 90bfbb9 commit 65b2460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions menu_from_project/logic/cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import List, Optional

# PyQGIS
from qgis.core import QgsFileDownloader, QgsMessageLog, Qgis, QgsApplication
from qgis.core import Qgis, QgsApplication, QgsFileDownloader, QgsMessageLog
from qgis.PyQt.QtCore import QCoreApplication, QEventLoop, QUrl

# project
Expand Down Expand Up @@ -265,7 +265,7 @@ def get_project_cache_dir(self, project: Project) -> Path:
# Can't use userProfileManager to get current profile directory in QGIS < 3.30
qgis_v_maj = Qgis.QGIS_VERSION_INT // 10000
qgis_v_min = (Qgis.QGIS_VERSION_INT // 100) % 100
if (qgis_v_maj <= 3 and qgis_v_min < 30):
if qgis_v_maj <= 3 and qgis_v_min < 30:
# Define profile directory from qgis settings dir
profiles_directory = Path(QgsApplication.qgisSettingsDirPath()).parent
cache_path = profiles_directory
Expand Down

0 comments on commit 65b2460

Please sign in to comment.