fix removing circles from nav bar when disabled

master
Kevin Froman 2020-10-16 06:30:17 +00:00
parent 895b4fe4fd
commit fcfecaff7e
3 changed files with 12 additions and 12 deletions

View File

@ -54,10 +54,9 @@ def add_peer(peerID, name=''):
return True
def add_address(address):
"""
Add an address to the address database (only tor currently)
"""
"""Add an address to the address database (only tor currently)"""
if type(address) is None or len(address) == 0:
return False

View File

@ -20,6 +20,7 @@ from coredb.keydb.listkeys import list_adders
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
def add_peer(peer):
if peer in list_adders():

View File

@ -35,7 +35,7 @@ let deleteNavbar = function(){
navbarLinks[x].style.display = 'none'
}
}
if (disabled.includes('flow')){
if (disabled.includes('circles')){
if (navbarLinks[x].innerText == 'Circles'){
navbarLinks[x].style.display = 'none'
}