Editing hook definitions in the manifest is very limited
Bug #1400830 reported by
Pat McGowan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu (Ubuntu) |
Triaged
|
Medium
|
Benjamin Zeller |
Bug Description
Select the manifest.json file in Edit pane
Under Hooks is a pulldown which defaults to "myapp"
There is no way to change this value
Once it is changed outside qtc the user is prompted to reload the file, but reloading doesn't show the new value. The file needs to be closed and reopened.
Should this be a simple text field?
Is it expected to have multiple entries under hooks, what is the reason for the selector dropdown?
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
status: | New → Triaged |
To post a comment you must log in.
Yes there is support for multiple hooks in manifests. A package can contain multiple apps,
or app + helper + scope.
It is possible to switch between source and gui based editor on the top of the manifest editor window.
So there is no need to reload the file or edit it outside of the IDE. The "General" and "Source" buttons
on top switch between those modes.
I considered creating multiple/renaming hooks a advanced task a developer could do in the "edit source" mode
and implementing a self explaining UI for it also is not trivial.
We could have a editable dropdown box there and add and remove buttons, but
it would make the UI more complex and less easy to understand. And the code that syncs
between Gui and Source editor more complex as well.
Also just having support for only one Hook in the Gui editor is not really a good idea, there is support
for multiple hooks. First question would be: what is the right hook to show in the gui if there are multiple?
And its not really intuitive why only one hook is shown in the gui.