Skip to content

Commit

Permalink
Merge branch 'main' into 218-style-not-rendering-correctly-in-qgis-316
Browse files Browse the repository at this point in the history
  • Loading branch information
koebi authored Jan 15, 2024
2 parents 8e38aed + 2c16bcc commit 9ce27ab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ RELEASING:
13. Create new release in GitHub with tag version and release title of `vX.X.X`
-->

## [1.7.1]
- Replace line style with style from previous QGis version 3.16 to enable correct rendering in that version ([#218](https://github.com/GIScience/orstools-qgis-plugin/issues/218))

## Unreleased

### Added
- Add hint to use batch jobs for point layers in tooltip in save vertices button ([#211](https://github.com/GIScience/orstools-qgis-plugin/issues/211))

### Fixed
- TypeError if no SVGPaths are set ([#212](https://github.com/GIScience/orstools-qgis-plugin/issues/212))
- replace removesuffix() function with replace() function in base processing algorithm ([#215](https://github.com/GIScience/orstools-qgis-plugin/pull/215))
- Replace line style with style from QGIS v3.16 to enable correct rendering in older versions ([#218](https://github.com/GIScience/orstools-qgis-plugin/issues/218))

## [1.7.0] - 2023-12-22

Expand Down
2 changes: 1 addition & 1 deletion ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def run_gui_control(self):

# add ors svg path
my_new_path = os.path.join(basepath, "img/svg")
svg_paths = QSettings().value("svg/searchPathsForSVG")
svg_paths = QSettings().value("svg/searchPathsForSVG") or []
if my_new_path not in svg_paths:
svg_paths.append(my_new_path)
QSettings().setValue("svg/searchPathsForSVG", svg_paths)
Expand Down
2 changes: 1 addition & 1 deletion ORStools/gui/ORStoolsDialogUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def retranslateUi(self, ORStoolsDialogBase):
self.routing_fromline_map.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>Add wayoints interactively from the map canvas.</p><p>Double-click will terminate waypoint selection.</p></body></html>"))
self.routing_fromline_clear.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>If waypoints are selected in the list, only these will be deleted. Else all waypoints will be deleted.</p></body></html>"))
self.routing_fromline_list.setToolTip(_translate("ORStoolsDialogBase", "Select waypoints from the map!"))
self.save_vertices.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>Save points in list to layer.</p></body></html>"))
self.save_vertices.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>Save points in list to layer. Use the processing algorithms (batch jobs) to work with points from layers.</p></body></html>"))
self.advances_group.setTitle(_translate("ORStoolsDialogBase", "Advanced Configuration"))
self.optimization_group.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>Enabling Traveling Salesman will omit all other advanced configuration and assume the preference to be <span style=\" font-weight:600;\">fastest</span>.</p></body></html>"))
self.optimization_group.setTitle(_translate("ORStoolsDialogBase", "Traveling Salesman"))
Expand Down
2 changes: 1 addition & 1 deletion ORStools/gui/ORStoolsDialogUI.ui
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Save points in list to layer.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Save points in list to layer. Use the processing algorithms (batch jobs) to work with points from layers.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string/>
Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/base_processing_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def _get_ors_client_from_provider(
Connects client to provider and returns a client instance for requests to the ors API
"""
name = cls.__name__
name = name.removeprefix("ORS").removesuffix("Algo")
name = name.replace("ORS", "").replace("Algo", "")
agent = f"QGIS_{name}"

providers = configmanager.read_config()["providers"]
Expand Down

0 comments on commit 9ce27ab

Please sign in to comment.