Create a ticket State:Closed|icon_bug|database:public|icon_mari|Resolution:Fixed|TargetRelease:6.0v1|BugID:512032|
Problem summary
Custom NodeGraph/Create shortcuts do not persist between sessions
Customer reported version
Mari 4.8v3
Customer reported platform
n/a
Steps to reproduce
1) In the Manage Keyboard Shortcuts dialog, navigate to the Mari/NodeGraph/Create section
2) Switch to the Node Graph context by setting the Apply To: dropdown as All
3) Assign a shortcut to one of the actions in this group - e.g. [K] to NodeGraph/Create/Basic/Color
4) Click OK
5) Restart Mari
6) Check the Manage Keyboard Shortcuts dialog for the shortcut assigned in step 2
Expected behaviour
Custom shortcuts should be saved and remain present when Mari is restarted.
Actual behaviour
Custom shortcuts in the NodeGraph/Create section are lost when Mari is restarted.
Workaround
This issue can be temporarily solved by assigning shortcuts via Python when Mari is launched.
As an example, if the following script is saved to the Scripts folder as a .py file, 'Ctrl+K' will be assigned to the Create Color node action:
import mari
from PySide2.QtCore import QTimer
action = "Mari/NodeGraph/Create/Basic/Color"
shortcut = "Ctrl+K"
def setShortcut():
mari.actions.setShortcut(action,shortcut)
print(shortcut+" shortcut assigned to "+action)
QTimer.singleShot(0, lambda: setShortcut())
The 'action' and 'shortcut' variables can be edited as needed.
Reproduced by support
This bug has been reproduced in:
Mari 5.0v3 - Windows 10 - CentOS 7.9
Mari 4.8v3 - Windows 10
Mari 4.8v2 - Windows 10 - CentOS 7.9 -
regression
Unable to reproduce bug in:
Mari 4.8v1 - Windows 10 - CentOS 7.9
Earliest version tested
Mari 4.8v1 - This issue doesn't appear in this version and has regressed