From 89abf00a2750713b0adf95cf12d9f90f4d01dc1b Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 23 Sep 2016 09:56:11 +0200 Subject: [PATCH] Update clear_bookmark_1.py --- src/fenrir-package/commands/commands/clear_bookmark_1.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/fenrir-package/commands/commands/clear_bookmark_1.py b/src/fenrir-package/commands/commands/clear_bookmark_1.py index b99568db..4be634d3 100644 --- a/src/fenrir-package/commands/commands/clear_bookmark_1.py +++ b/src/fenrir-package/commands/commands/clear_bookmark_1.py @@ -17,11 +17,8 @@ class command(): return 'remove Bookmark ' + self.ID def run(self): - currApp = '' - try: - currApp = str(self.env['screenData']['newApplication'][0]) - except: - currApp = 'DEFAULT' + currApp = self.environment['runtime']['applicationManager'].getCurrentApplication() + del self.env['commandBuffer']['bookMarks'][self.ID][currApp] self.env['runtime']['outputManager'].presentText('Bookmark ' + self.ID + " removed for application " + currApp, interrupt=True)