Update clear_bookmark_1.py

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

View File

@ -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)