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

Method getCurrentSearchOption

src/bitmessageqt/__init__.py:3547–3559  ·  view source on GitHub ↗
(self, currentIndex=None)

Source from the content-addressed store, hash-verified

3545 return None
3546
3547 def getCurrentSearchOption(self, currentIndex=None):
3548 if currentIndex is None:
3549 currentIndex = self.ui.tabWidget.currentIndex()
3550 messagelistList = [
3551 self.ui.inboxSearchOption,
3552 False,
3553 self.ui.inboxSearchOptionSubscriptions,
3554 self.ui.inboxSearchOptionChans,
3555 ]
3556 if currentIndex >= 0 and currentIndex < len(messagelistList):
3557 return messagelistList[currentIndex].currentText().toUtf8().data()
3558 else:
3559 return None
3560
3561 # Group of functions for the Your Identities dialog box
3562 def getCurrentItem(self, treeWidget=None):

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected