Update bookmark_1.py

This commit is contained in:
chrys87 2016-09-23 09:55:49 +02:00 committed by GitHub
parent 215f44f9c2
commit a1b7d80451

View File

@ -18,11 +18,8 @@ class command():
return 'read Bookmark ' + self.ID return 'read Bookmark ' + self.ID
def run(self): def run(self):
currApp = '' currApp = self.environment['runtime']['applicationManager'].getCurrentApplication()
try:
currApp = str(self.env['screenData']['newApplication'][0])
except:
currApp = 'DEFAULT'
if not self.env['commandBuffer']['bookMarks'][self.ID]: if not self.env['commandBuffer']['bookMarks'][self.ID]:
self.env['runtime']['outputManager'].presentText("Bookmark " + self.ID + "not found.", interrupt=True) self.env['runtime']['outputManager'].presentText("Bookmark " + self.ID + "not found.", interrupt=True)
return return