-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store validator config file in project variable #828
Conversation
efcd9ed
to
ec25d23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need the load "Load from project" button? Isn't it always loaded when the widget becomes visible? Or is it just in case someone edits it and want to get back the stored value?
QgisModelBaker/gui/validate.py
Outdated
self.validator_config_file_line_edit.setText(filename) | ||
self.config_file_line_edit.setText(self._relative_path(filename)) | ||
|
||
def _save_config_file(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would name it _save_config_file_path
to make it clear that the path to the file is stored, and not the entire file itself.
Maybe in the gui as well.
Yes, that was my thought. Otherwise you would need to go to the Project Variables and copy it around. |
I decided to make the button:
Because a remember checkbox appeared too complicated in the UX and writing automatically seems wrong as well (since it's confusing that it's stored when I use the config file and later i saved the project (maybe because another reason).
The path are stored relative (except when the current project is not yet saved) and passed to ili2db absolute.
When instead of a path a
ilidata:key
is entered, then it works as well. It just saves theilidata:key
...Btw. When changing the selected layer, the settings are taken over even if it's the same schema. The config file is not saved per schema but per project instead. This because project settings should not be schema dependent. UsabILIty Hub integration would become impossible otherwise. But when I change the config file value and don't save it on layer change to another schema it resets it to the value from the project config.
Possibilities for UsabILIty Hub Integration
See #829
Resolves #820