@ -222,7 +222,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
# update fee slider in case we missed the callback
# update fee slider in case we missed the callback
self . fee_slider . update ( )
self . fee_slider . update ( )
self . load_wallet ( wallet )
self . load_wallet ( wallet )
self . connect_slots ( gui_object . timer )
gui_object . timer . timeout . connect ( self . timer_actions )
self . fetch_alias ( )
self . fetch_alias ( )
def on_history ( self , b ) :
def on_history ( self , b ) :
@ -670,9 +670,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
self . config . set_key ( ' io_dir ' , os . path . dirname ( fileName ) , True )
self . config . set_key ( ' io_dir ' , os . path . dirname ( fileName ) , True )
return fileName
return fileName
def connect_slots ( self , sender ) :
sender . timer_signal . connect ( self . timer_actions )
def timer_actions ( self ) :
def timer_actions ( self ) :
# Note this runs in the GUI thread
# Note this runs in the GUI thread
if self . need_update . is_set ( ) :
if self . need_update . is_set ( ) :
@ -3134,6 +3131,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
if self . qr_window :
if self . qr_window :
self . qr_window . close ( )
self . qr_window . close ( )
self . close_wallet ( )
self . close_wallet ( )
self . gui_object . timer . timeout . disconnect ( self . timer_actions )
self . gui_object . close_window ( self )
self . gui_object . close_window ( self )
def plugins_dialog ( self ) :
def plugins_dialog ( self ) :