20240401191300
This commit is contained in:
parent
33ca025d90
commit
d60ad5e61f
17
main.py
17
main.py
|
@ -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)
|
||||
except Exception:
|
||||
pass
|
||||
self.bt_format = None
|
||||
self.bt_app = None
|
||||
try:
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue