From 04b34b5679c3545a4917f8824837f43ee413d5b0 Mon Sep 17 00:00:00 2001 From: Merydian Date: Thu, 21 Dec 2023 10:40:10 +0100 Subject: [PATCH] feat: add message bar when vertices were exported --- ORStools/gui/ORStoolsDialog.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index 0a959bad..c6c24255 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -31,6 +31,8 @@ import os import processing import webbrowser + +from qgis._core import Qgis from qgis.core import ( QgsProject, QgsVectorLayer, @@ -461,6 +463,10 @@ def _save_vertices_to_layer(self): QgsProject.instance().addMapLayer(point_layer) self._iface.mapCanvas().refresh() + self._iface.messageBar().pushMessage( + "Success", "Vertices saved to layer.", level=Qgis.Success + ) + def _on_prov_refresh_click(self): """Populates provider dropdown with fresh list from config.yml"""