Skip to content
Permalink
Browse files
Indent JSON copied from processing history
  • Loading branch information
nyalldawson committed Dec 21, 2021
1 parent 940270e commit 26c8fe9aa6e6b48e21d8f0b44e34f597d1ebcaa3
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/HistoryDialog.py
@@ -250,7 +250,7 @@ def showPopupMenu(self, point):
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():

0 comments on commit 26c8fe9

Please sign in to comment.