Update clear_bookmark_1.py
This commit is contained in:
parent
a1b7d80451
commit
89abf00a27
@ -17,11 +17,8 @@ class command():
|
|||||||
return 'remove Bookmark ' + self.ID
|
return 'remove 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'
|
|
||||||
del self.env['commandBuffer']['bookMarks'][self.ID][currApp]
|
del self.env['commandBuffer']['bookMarks'][self.ID][currApp]
|
||||||
|
|
||||||
self.env['runtime']['outputManager'].presentText('Bookmark ' + self.ID + " removed for application " + currApp, interrupt=True)
|
self.env['runtime']['outputManager'].presentText('Bookmark ' + self.ID + " removed for application " + currApp, interrupt=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user