20240401191300

This commit is contained in:
zhaoyafan 2024-04-01 19:13:51 +08:00
parent 33ca025d90
commit d60ad5e61f
1 changed files with 8 additions and 9 deletions

View File

@ -461,15 +461,14 @@ class BarTenderPrint:
return path
def quit(self):
if (self.bt_format is not None) == 1:
self.logger.i('%s%s' % ('Quit', ''))
try:
self.bt_format.Close(BarTender.BtSaveOptions.btDoNotSaveChanges)
self.bt_app.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
self.bt_format is not None and self.bt_format.Close(BarTender.BtSaveOptions.btDoNotSaveChanges)
self.bt_app is not None and self.bt_app.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
except Exception:
pass
self.bt_format = None
self.bt_app = None
self.logger.i('%s%s' % ('Quit', ''))
class ScanVerify: