Bug 423381

Summary: Krita.instance().action("KisToolCrop") returns None
Product: [Applications] krita Reporter: Lewis <fuller.hill>
Component: ScriptingAssignee: Halla Rempt <halla>
Status: RESOLVED WORKSFORME    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lewis 2020-06-23 05:57:25 UTC
SUMMARY
Krita.instance().action("KisToolCrop") returns None

STEPS TO REPRODUCE
1. In Krita Python Scripter: Krita.instance().action("KisToolCrop")
2. Unable to initiate Crop Tool, or other tools for that matter.
3. 

OBSERVED RESULT
None result.

EXPECTED RESULT
Activation of Crop Tool/ Tools

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2020-06-23 09:12:37 UTC
Okay, we worked around this now. The issues was that tool actions and only are created once there's a canvas.