MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / closeEvent

Method closeEvent

src/bitmessageqt/__init__.py:2849–2867  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

2847
2848 # window close event
2849 def closeEvent(self, event):
2850 self.appIndicatorHide()
2851 trayonclose = False
2852
2853 try:
2854 trayonclose = BMConfigParser().getboolean(
2855 'bitmessagesettings', 'trayonclose')
2856 except Exception:
2857 pass
2858
2859 # always ignore, it shuts down by itself
2860 if self.quitAccepted:
2861 event.accept()
2862 return
2863
2864 event.ignore()
2865 if not trayonclose:
2866 # quit the application
2867 self.quit()
2868
2869 def on_action_InboxMessageForceHtml(self):
2870 msgid = self.getCurrentMessageId()

Callers

nothing calls this directly

Calls 4

appIndicatorHideMethod · 0.95
quitMethod · 0.95
BMConfigParserClass · 0.90
acceptMethod · 0.45

Tested by

no test coverage detected