Example #1
0
 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)
Example #2
0
 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
Example #3
0
 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)
Example #4
0
 def dismiss(self):
     super(PSDialog, self).dismiss()
     self.log_tab.log_handler.notify = False
     util.unregister_callback(self.on_ps_callback)
Example #5
0
 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)
Example #6
0
 def closeEvent(self, e):
     if self.dnlayout.err_label.text():
         e.ignore()
     if self.network:
         util.unregister_callback(self.on_dash_net)
Example #7
0
 def dismiss(self, *args, **kwargs):
     super(ProTxStatsDialog, self).dismiss(*args, **kwargs)
     util.unregister_callback(self.update_cb)
     util.unregister_callback(self.update_cb)
Example #8
0
 def dismiss(self, *args, **kwargs):
     super(DashNetDataFlowDialog, self).dismiss(*args, **kwargs)
     util.unregister_callback(self.update_cb)