mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] ressurect 'new script' action
This commit is contained in:
parent
7115e044e3
commit
472b8bf6bf
@ -33,17 +33,12 @@ from processing.gui.ToolboxAction import ToolboxAction
|
||||
|
||||
from processing.script.ScriptEditorDialog import ScriptEditorDialog
|
||||
|
||||
pluginPath = os.path.split(os.path.dirname(__file__))[0]
|
||||
|
||||
|
||||
class CreateNewScriptAction(ToolboxAction):
|
||||
|
||||
def __init__(self):
|
||||
self.name = self.tr('Create new script')
|
||||
self.group = self.tr('Tools')
|
||||
|
||||
def getIcon(self):
|
||||
return QgsApplication.getThemeIcon("/processingScript.svg")
|
||||
self.name = self.tr("Create new script")
|
||||
self.group = self.tr("Tools")
|
||||
|
||||
def execute(self):
|
||||
dlg = ScriptEditorDialog(None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user