mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not save state twice during editor shutdown
This commit is contained in:
parent
e0e1dbc638
commit
9ba1fdda45
@ -1387,7 +1387,6 @@ class Boss(QObject):
|
|||||||
|
|
||||||
if not self.confirm_quit():
|
if not self.confirm_quit():
|
||||||
return False
|
return False
|
||||||
self.save_state()
|
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
QApplication.instance().quit()
|
QApplication.instance().quit()
|
||||||
return True
|
return True
|
||||||
@ -1445,11 +1444,11 @@ class Boss(QObject):
|
|||||||
QApplication.instance().quit()
|
QApplication.instance().quit()
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
|
self.save_state()
|
||||||
completion_worker().shutdown()
|
completion_worker().shutdown()
|
||||||
self.save_manager.check_for_completion.disconnect()
|
self.save_manager.check_for_completion.disconnect()
|
||||||
self.gui.preview.stop_refresh_timer()
|
self.gui.preview.stop_refresh_timer()
|
||||||
self.gui.live_css.stop_update_timer()
|
self.gui.live_css.stop_update_timer()
|
||||||
self.save_state()
|
|
||||||
[x.reject() for x in _diff_dialogs]
|
[x.reject() for x in _diff_dialogs]
|
||||||
del _diff_dialogs[:]
|
del _diff_dialogs[:]
|
||||||
self.save_manager.shutdown()
|
self.save_manager.shutdown()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user