comparison libervia/tui/contact_list.py @ 4170:b47f21f2b8fa

quick_frontend, tui: fix name conflict with `show_resources`
author Goffi <goffi@goffi.org>
date Fri, 01 Dec 2023 18:23:04 +0100
parents b620a8e882e1
children
comparison
equal deleted inserted replaced
4169:e92c32014024 4170:b47f21f2b8fa
90 C.bool_const(not self.contact_list.show_disconnected), 90 C.bool_const(not self.contact_list.show_disconnected),
91 "General", 91 "General",
92 profile_key=self.profile, 92 profile_key=self.profile,
93 ) 93 )
94 elif key == a_key["RESOURCES_HIDE"]: # user wants to (un)hide contacts resources 94 elif key == a_key["RESOURCES_HIDE"]: # user wants to (un)hide contacts resources
95 self.contact_list.show_resources(not self.contact_list.show_resources) 95 self.contact_list.show_resources = not self.contact_list.show_resources
96 self.update() 96 self.update()
97 return super(ContactList, self).keypress(size, key) 97 return super(ContactList, self).keypress(size, key)
98 98
99 # QuickWidget methods 99 # QuickWidget methods
100 100