def unregister_callbacks(self): if self.mn_list: self.mn_list.unregister_callback(self.on_mn_list_diff_updated) self.mn_list.unregister_callback(self.on_mn_list_info_updated) if self.gui.network: util.unregister_callback(self.on_cb_network_updated) self.manager.unregister_callback(self.on_manager_alias_updated)
def closeEvent(self, event): event.accept() if self.mn_list and self.protx_hash: util.unregister_callback(self.on_mn_list_diff_updated) util.unregister_callback(self.on_mn_list_info_updated) try: mn_info_dialogs.remove(self) except ValueError: pass
def dismiss(self, *args, **kwargs): super(DashNetDialog, self).dismiss(*args, **kwargs) self.dash_net.unregister_callback(self.on_dash_net_activity_cb) self.dash_net.unregister_callback(self.on_sporks_activity_cb) self.dash_net.unregister_callback(self.on_dash_peers_updated_cb) self.dash_net.unregister_callback(self.on_dash_banlist_updated_cb) self.mn_list.unregister_callback(self.on_mn_list_diff_updated_cb) self.mn_list.unregister_callback(self.on_mn_list_info_updated_cb) util.unregister_callback(self.on_network_updated_cb)
def dismiss(self): super(PSDialog, self).dismiss() self.log_tab.log_handler.notify = False util.unregister_callback(self.on_ps_callback)
def dismiss(self, *args, **kwargs): super(ProTxStatsDialog, self).dismiss(*args, **kwargs) net = self.dn_dlg.net mn_list = net.mn_list mn_list.unregister_callback(self.update_cb) util.unregister_callback(self.update_cb)
def closeEvent(self, e): if self.dnlayout.err_label.text(): e.ignore() if self.network: util.unregister_callback(self.on_dash_net)
def dismiss(self, *args, **kwargs): super(ProTxStatsDialog, self).dismiss(*args, **kwargs) util.unregister_callback(self.update_cb) util.unregister_callback(self.update_cb)
def dismiss(self, *args, **kwargs): super(DashNetDataFlowDialog, self).dismiss(*args, **kwargs) util.unregister_callback(self.update_cb)