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

Method on_action_SubscriptionsEnable

src/bitmessageqt/__init__.py:3392–3400  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3390 clipboard.setText(str(address))
3391
3392 def on_action_SubscriptionsEnable(self):
3393 address = self.getCurrentAccount()
3394 sqlExecute(
3395 '''update subscriptions set enabled=1 WHERE address=?''',
3396 address)
3397 account = self.getCurrentItem()
3398 account.setEnabled(True)
3399 self.rerenderAddressBook()
3400 shared.reloadBroadcastSendersForWhichImWatching()
3401
3402 def on_action_SubscriptionsDisable(self):
3403 address = self.getCurrentAccount()

Callers

nothing calls this directly

Calls 5

getCurrentAccountMethod · 0.95
getCurrentItemMethod · 0.95
rerenderAddressBookMethod · 0.95
sqlExecuteFunction · 0.90
setEnabledMethod · 0.80

Tested by

no test coverage detected