Skip to content

Commit

Permalink
Merge pull request #576 from opengisch/warn_restart_qgis
Browse files Browse the repository at this point in the history
Add warning to restart QGIS
  • Loading branch information
m-kuhn committed Mar 29, 2024
2 parents 74c572d + fdfc8c4 commit 7b711b0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion qfieldsync/gui/package_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,21 @@

from libqfieldsync.layer import LayerSource
from libqfieldsync.offline_converter import ExportType, OfflineConverter
from libqfieldsync.offliners import QgisCoreOffliner

# TODO this try/catch was added due to module structure changes in QFS 4.8.0. Remove this as enough time has passed since March 2024.
try:
from libqfieldsync.offliners import QgisCoreOffliner
except ModuleNotFoundError:
from qgis.PyQt.QtCore import QCoreApplication
from qgis.PyQt.QtWidgets import QMessageBox

QMessageBox.warning(
None,
QCoreApplication.translate("QFieldSync", "Please restart QGIS"),
QCoreApplication.translate(
"QFieldSync", "To finalize the QFieldSync upgrade, please restart QGIS."
),
)
from libqfieldsync.project import ProjectConfiguration
from libqfieldsync.project_checker import ProjectChecker
from libqfieldsync.utils.file_utils import fileparts
Expand Down

0 comments on commit 7b711b0

Please sign in to comment.