From 53dba8003b1f48806bff55c06adc155c67627bd9 Mon Sep 17 00:00:00 2001 From: YuLong Yao Date: Thu, 18 May 2023 17:30:14 +0800 Subject: [PATCH] api: add guiUndo action --- plugin/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/__init__.py b/plugin/__init__.py index a30fca0..73f4d81 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -1801,6 +1801,12 @@ class AnkiConnect: return True + @util.api() + def guiUndo(self): + self.window().undo() + return True + + @util.api() def guiDeckOverview(self, name): collection = self.collection()