Indent JSON copied from processing history

This commit is contained in:
Nyall Dawson 2021-12-21 09:42:20 +10:00
parent 940270e91f
commit 26c8fe9aa6

View File

@ -250,7 +250,7 @@ class HistoryDialog(BASE, WIDGET):
as_json_action = QAction(
QCoreApplication.translate('HistoryDialog', 'Copy as JSON'), self.tree)
as_json_action.setIcon(QgsApplication.getThemeIcon("mActionEditCopy.svg"))
as_json_action.triggered.connect(partial(self.copy_text, json.dumps(inputs_json)))
as_json_action.triggered.connect(partial(self.copy_text, json.dumps(inputs_json, indent=2)))
popupmenu.addAction(as_json_action)
if not popupmenu.isEmpty():