def on_enabled_changed(self): if label_sync.is_enabled(): for window in app_state.app.windows: self.window_opened(window) else: for window in app_state.app.windows: self.window_closed(window)
def window_opened(self, window): if label_sync.is_enabled(): app_state.app.labels_changed_signal.connect(window.update_tabs) for wallet in window.parent_wallet.get_child_wallets(): self.start_wallet(wallet)
def window_opened(self, window): if label_sync.is_enabled(): app_state.app.labels_changed_signal.connect(window.update_tabs) for account in window._wallet.get_accounts(): self.start_account(account)
def window_opened(self, window): if label_sync.is_enabled(): app_state.app.labels_changed_signal.connect(window.update_tabs) self.start_wallet(window.wallet)