Fix fo/fortune command in python sample (#3076, Fix #3075)

This commit is contained in:
Semnodime 2023-01-11 10:39:43 +01:00 committed by GitHub
parent 93acec9682
commit 54cd0f1a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ class FortuneWidget(cutter.CutterDockWidget):
self.show()
def generate_fortune(self):
fortune = cutter.cmd("fo").replace("\n", "")
fortune = cutter.cmd("fortune").replace("\n", "")
res = cutter.core().cmdRaw(f"?E {fortune}")
self.text.setText(res)
@ -44,7 +44,7 @@ class FortuneWidget(cutter.CutterDockWidget):
class CutterSamplePlugin(cutter.CutterPlugin):
name = "Sample Plugin"
description = "A sample plugin written in python."
version = "1.1"
version = "1.2"
author = "Cutter developers"
# Override CutterPlugin methods