Eliminate useless callback type checks.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
parent
d4d61cf452
commit
b78eeba4c9
1 changed files with 4 additions and 7 deletions
11
newfol
11
newfol
|
|
@ -393,8 +393,6 @@ class RecordView(StandardView):
|
|||
self._set_titles_for_grid(rec.table)
|
||||
return grid
|
||||
def callback(self, type_, obj):
|
||||
if type_ == "select":
|
||||
return
|
||||
if type_ == "cancel":
|
||||
render_previous_view(self.loop)
|
||||
def _setup_button(self, button):
|
||||
|
|
@ -874,11 +872,10 @@ class MenuView(ListView):
|
|||
text = self.listbox.get_focus()[0].original_widget.get_text()[0]
|
||||
command = self.OPTIONS[text]
|
||||
if command == "browse-all":
|
||||
if self.is_callback_type(type_, "select"):
|
||||
ccview = CompleteContentsListView()
|
||||
ccview.set_render_type(type_)
|
||||
ccview.render(self.loop)
|
||||
return
|
||||
ccview = CompleteContentsListView()
|
||||
ccview.set_render_type(type_)
|
||||
ccview.render(self.loop)
|
||||
return
|
||||
self.loop.unhandled_input(command)
|
||||
def _rerender_listview(self):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue