mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
- When saving a model to a file, don't require that the model already has a name entered. Instead, if no model name has been entered then set the model name automatically to match the selected save filename. E.g. if the user saves the model as "Process incoming features.model3", then the model name will be set to "Process incoming features". - When first saving a model, IF the user HAS already entered a model name then make the default file name suggested by the dialog match this model name
7 lines
566 B
Python
7 lines
566 B
Python
# The following has been generated automatically from src/gui/processing/models/qgsmodeldesignerdialog.h
|
|
# monkey patching scoped based enum
|
|
QgsModelDesignerDialog.SaveAction.SaveAsFile.__doc__ = "Save model as a file"
|
|
QgsModelDesignerDialog.SaveAction.SaveInProject.__doc__ = "Save model into project"
|
|
QgsModelDesignerDialog.SaveAction.__doc__ = 'Save action.\n\n.. versionadded:: 3.24\n\n' + '* ``SaveAsFile``: ' + QgsModelDesignerDialog.SaveAction.SaveAsFile.__doc__ + '\n' + '* ``SaveInProject``: ' + QgsModelDesignerDialog.SaveAction.SaveInProject.__doc__
|
|
# --
|