Skip to content

Commit f5704a2

Browse files
committed
fix(avaframeConnector): improve version compatibility handling and clarify downgrade instructions
Enhanced the user notification for AvaFrame version incompatibility, providing clear instructions for downgrading. Removed automatic downgrade logic to prevent unexpected behavior.
1 parent 252040a commit f5704a2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

avaframeConnector_provider.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ def avaframeMajor():
8585
if _major is not None and _major >= 2:
8686
QMessageBox.information(
8787
None,
88-
"INFO",
89-
"AvaFrame >=2.0 detected; the connector requires <2.0. "
90-
"Downgrading now — please restart QGIS afterwards.",
88+
"Wrong AvaFrame version",
89+
"AvaFrame version >= 2.0 detected. AvaFrameConnector requires AvaFrame < 2.0.\n\n"
90+
"Note: AvaFrameConnector cannot be installed at the same time as OpenNHMConnector.\n\n"
91+
"To downgrade, run in the OSGeo4W shell (or similar):\n"
92+
" pip install avaframe<2.0",
9193
)
92-
installAvaframe()
9394
except ModuleNotFoundError:
9495
installAvaframe()
9596
try:

0 commit comments

Comments
 (0)