From 8e445bfa8610657592cd13319548c2a892400ca8 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 23 Sep 2016 09:56:38 +0200 Subject: [PATCH] Update set_bookmark_1.py --- src/fenrir-package/commands/commands/set_bookmark_1.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/fenrir-package/commands/commands/set_bookmark_1.py b/src/fenrir-package/commands/commands/set_bookmark_1.py index 67768511..f162e596 100644 --- a/src/fenrir-package/commands/commands/set_bookmark_1.py +++ b/src/fenrir-package/commands/commands/set_bookmark_1.py @@ -21,12 +21,7 @@ class command(): if not self.env['commandBuffer']['Marks']['1']: self.env['runtime']['outputManager'].presentText("No Mark found", interrupt=True) return - currApp = '' - try: - currApp = str(self.env['screenData']['newApplication'][0]) - except Exception as e: - print(e) - currApp = 'DEFAULT' + currApp = self.environment['runtime']['applicationManager'].getCurrentApplication() self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} self.env['commandBuffer']['bookMarks'][self.ID][currApp]['1'] = self.env['commandBuffer']['Marks']['1'].copy()