Skip to content

docs: changed read_config docstring & made use off it - #379

Open
TKleinwort wants to merge 2 commits into
mainfrom
read_config_fix
Open

docs: changed read_config docstring & made use off it#379
TKleinwort wants to merge 2 commits into
mainfrom
read_config_fix

Conversation

@TKleinwort

Copy link
Copy Markdown
Collaborator

read_config is now imported and called in add_default_provider_to_settings (inside of ORStoolsPlugin.py) to avoid redundant text.

@merydian

Copy link
Copy Markdown
Collaborator

You'll need to run ruff format in the plugin base dir. Install it with pip 👌🏼

@merydian merydian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All in all a very solid approach!

Comment thread .vscode/settings.json

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file here intentionally?

Comment thread .vscode/settings.json
def __init__(self, parent=None):
super().__init__(parent)

self.setIcon(QMessageBox.Warning)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't compatible with Qt6, try to use QGIS4 for development to check for these errors.

QgsApplication.processingRegistry().addProvider(self.provider)
self.dialog.initGui()
# starts deprecated url dialog after QGIS Main-Window opened
iface.initializationCompleted.connect(self.check_provider_url)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't trigger somehow, what about just calling the function here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants