Update set_bookmark_1.py

This commit is contained in:
chrys87 2016-09-23 09:56:38 +02:00 committed by GitHub
parent 89abf00a27
commit 8e445bfa86

View File

@ -21,12 +21,7 @@ class command():
if not self.env['commandBuffer']['Marks']['1']: if not self.env['commandBuffer']['Marks']['1']:
self.env['runtime']['outputManager'].presentText("No Mark found", interrupt=True) self.env['runtime']['outputManager'].presentText("No Mark found", interrupt=True)
return return
currApp = '' currApp = self.environment['runtime']['applicationManager'].getCurrentApplication()
try:
currApp = str(self.env['screenData']['newApplication'][0])
except Exception as e:
print(e)
currApp = 'DEFAULT'
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {} self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
self.env['commandBuffer']['bookMarks'][self.ID][currApp]['1'] = self.env['commandBuffer']['Marks']['1'].copy() self.env['commandBuffer']['bookMarks'][self.ID][currApp]['1'] = self.env['commandBuffer']['Marks']['1'].copy()