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

Method on_action_SubscriptionsDelete

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

Source from the content-addressed store, hash-verified

3362 self.click_pushButtonAddSubscription()
3363
3364 def on_action_SubscriptionsDelete(self):
3365 if QtGui.QMessageBox.question(
3366 self, "Delete subscription?",
3367 _translate(
3368 "MainWindow",
3369 "If you delete the subscription, messages that you"
3370 " already received will become inaccessible. Maybe"
3371 " you can consider disabling the subscription instead."
3372 " Disabled subscriptions will not receive new"
3373 " messages, but you can still view messages you"
3374 " already received.\n\nAre you sure you want to"
3375 " delete the subscription?"
3376 ), QtGui.QMessageBox.Yes | QtGui.QMessageBox.No
3377 ) != QtGui.QMessageBox.Yes:
3378 return
3379 address = self.getCurrentAccount()
3380 sqlExecute('''DELETE FROM subscriptions WHERE address=?''',
3381 address)
3382 self.rerenderTabTreeSubscriptions()
3383 self.rerenderMessagelistFromLabels()
3384 self.rerenderAddressBook()
3385 shared.reloadBroadcastSendersForWhichImWatching()
3386
3387 def on_action_SubscriptionsClipboard(self):
3388 address = self.getCurrentAccount()

Callers

nothing calls this directly

Calls 6

getCurrentAccountMethod · 0.95
rerenderAddressBookMethod · 0.95
_translateFunction · 0.90
sqlExecuteFunction · 0.90

Tested by

no test coverage detected