From 6fd2f60d66f2782751c2e85c18acda197a51871b Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 12 Feb 2019 22:38:06 +0100 Subject: [PATCH] polish vmenu with tutorial mode --- .../commands/commands/toggle_tutorial_mode.py | 8 ++++---- .../commands/commands/toggle_vmenu_mode.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py b/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py index 1ac2eb31..2ce98535 100644 --- a/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py +++ b/src/fenrirscreenreader/commands/commands/toggle_tutorial_mode.py @@ -14,11 +14,11 @@ class command(): def shutdown(self): pass def getDescription(self): - self.env['runtime']['helpManager'].toggleTutorialMode() - #self.env['runtime']['outputManager'].presentText(, interrupt=True) + self.env['runtime']['helpManager'].toggleTutorialMode() return _('Exiting tutorial mode. To enter tutorial mode again press Fenrir+f1') def run(self): - self.env['runtime']['helpManager'].toggleTutorialMode() - self.env['runtime']['outputManager'].presentText( _('Entering tutorial mode. In this mode commands are described but not executed. You can move through the list of commands with the up and down arrow keys. To Exit tutorial mode press Fenrir+f1.'), interrupt=True) + self.env['runtime']['helpManager'].toggleTutorialMode() + if self.env['runtime']['helpManager'].isTutorialMode(): + self.env['runtime']['outputManager'].presentText( _('Entering tutorial mode. In this mode commands are described but not executed. You can move through the list of commands with the up and down arrow keys. To Exit tutorial mode press Fenrir+f1.'), interrupt=True) def setCallback(self, callback): pass diff --git a/src/fenrirscreenreader/commands/commands/toggle_vmenu_mode.py b/src/fenrirscreenreader/commands/commands/toggle_vmenu_mode.py index 1090323e..68881700 100644 --- a/src/fenrirscreenreader/commands/commands/toggle_vmenu_mode.py +++ b/src/fenrirscreenreader/commands/commands/toggle_vmenu_mode.py @@ -15,7 +15,7 @@ class command(): pass def getDescription(self): self.env['runtime']['vmenuManager'].togglelVMenuMode() - return _('Exiting v menu mode.') + return _('Entering or Leaving v menu mode.') def run(self): self.env['runtime']['vmenuManager'].togglelVMenuMode() if self.env['runtime']['vmenuManager'].getActive():