Skip to content

Commit

Permalink
[processing] Add a help string to tell users what they can do in the …
Browse files Browse the repository at this point in the history
…history dialog
  • Loading branch information
nirvn committed Mar 29, 2021
1 parent 7b66ba8 commit edaf49c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -158,7 +158,8 @@ def executeAlgorithm(self):
def changeText(self):
item = self.tree.currentItem()
if isinstance(item, TreeLogEntryItem):
self.text.setText(item.entry.text.replace(LOG_SEPARATOR, '\n'))
self.text.setText('"""\n' + self.tr('Double-click on the history item or paste the command below to re-run the algorithm') + '\n"""\n\n' +
item.entry.text.replace('processing.run(', 'processing.execAlgorithmDialog(').replace(LOG_SEPARATOR, '\n'))

def createTest(self):
item = self.tree.currentItem()
Expand Down

0 comments on commit edaf49c

Please sign in to comment.