20240401191300
This commit is contained in:
parent
33ca025d90
commit
d60ad5e61f
17
main.py
17
main.py
|
@ -461,15 +461,14 @@ class BarTenderPrint:
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def quit(self):
|
def quit(self):
|
||||||
if (self.bt_format is not None) == 1:
|
try:
|
||||||
self.logger.i('%s%s' % ('Quit', ''))
|
self.bt_format is not None and self.bt_format.Close(BarTender.BtSaveOptions.btDoNotSaveChanges)
|
||||||
try:
|
self.bt_app is not None and self.bt_app.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
|
||||||
self.bt_format.Close(BarTender.BtSaveOptions.btDoNotSaveChanges)
|
except Exception:
|
||||||
self.bt_app.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
|
pass
|
||||||
except Exception:
|
self.bt_format = None
|
||||||
pass
|
self.bt_app = None
|
||||||
self.bt_format = None
|
self.logger.i('%s%s' % ('Quit', ''))
|
||||||
self.bt_app = None
|
|
||||||
|
|
||||||
|
|
||||||
class ScanVerify:
|
class ScanVerify:
|
||||||
|
|
Loading…
Reference in New Issue