Skip to content

Commit

Permalink
feat: add message bar when vertices were exported
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Dec 21, 2023
1 parent 40fb090 commit 04b34b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import os
import processing
import webbrowser

from qgis._core import Qgis
from qgis.core import (
QgsProject,
QgsVectorLayer,
Expand Down Expand Up @@ -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"""

Expand Down

0 comments on commit 04b34b5

Please sign in to comment.